Re: AW: AW: Is it possible to turn on pg_stat_extensions at a database level
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: "Subramanian,Ramachandran" <ramachandran.subramanian@alte-leipziger.de>,
"depesz@depesz.com" <depesz@depesz.com>
Cc: "pgsql-novice@lists.postgresql.org" <pgsql-novice@lists.postgresql.org>
Date: 2026-03-13T06:58:39Z
Lists: pgsql-novice
On Fri, 2026-03-13 at 05:54 +0000, Subramanian,Ramachandran wrote: > Coming from the mainframe world, we always assume that there is a lot of > CPU/IO expense to monitor and collect statistics from unnecessary Databases. > > This is why I wanted the collection of the statitstics itself to be restricted > to just one Database. Ok, now you know that you cannot get it. I doubt that there are databases where monitoring is unnecessary: - if there is nothing doing in that database, that won't be a lot of statistics to collect - if there is a lot going on in that database, the load will be noteworthy and can affect your other, necessary, databases in the same cluster, so you need the statistics to diagnose such problems Yours, Laurenz Albe