public inbox for pgsql-novice@postgresql.org
help / color / mirror / Atom feedFrom: Laurenz Albe <laurenz.albe@cybertec.at>
To: depesz@depesz.com
To: Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
Cc: pgsql-novice@lists.postgresql.org <pgsql-novice@lists.postgresql.org>
Subject: Re: AW: Is it possible to turn on pg_stat_extensions at a database level
Date: Thu, 12 Mar 2026 20:59:36 +0100
Message-ID: <b6e9a932db4e280977db1888acfe03b1f182d8bb.camel@cybertec.at> (raw)
In-Reply-To: <abKJkKpLVRbApeRY@depesz.com>
References: <c263728956fa4dc2b4c00bd3822d497b@alte-leipziger.de>
<abKHnbVxwkrGL1Fb@depesz.com>
<959ecf128e514007a7558febe8b76e35@alte-leipziger.de>
<abKJkKpLVRbApeRY@depesz.com>
On Thu, 2026-03-12 at 10:38 +0100, hubert depesz lubaczewski wrote:
> On Thu, Mar 12, 2026 at 09:33:29AM +0000, Subramanian,Ramachandran wrote:
> > I meant to ask if the extension can be created only for one database, so that the details from the other databases are not recorded.
>
> So, no. You can't.
... but there is no need to do that.
If you are only interested in the statistics for statements on a single database,
add a WHERE condition with the database's object ID, like
WHERE dbid = 47110815
Yours,
Laurenz Albe
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-novice@postgresql.org
Cc: laurenz.albe@cybertec.at, depesz@depesz.com, ramachandran.subramanian@alte-leipziger.de, pgsql-novice@lists.postgresql.org
Subject: Re: AW: Is it possible to turn on pg_stat_extensions at a database level
In-Reply-To: <b6e9a932db4e280977db1888acfe03b1f182d8bb.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox