public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: Re: Parameter Settings - Instance-Database-Specific
Date: Sun, 2 Feb 2025 09:57:06 -0500
Message-ID: <CANzqJaCP0C63feoHBG-jCG_=MWrzhs6jNykANf_KrUHTtbuw+g@mail.gmail.com> (raw)
In-Reply-To: <CA+wokJ-qqgzP5YnsSHkJRZxSxA20BZnWqgJfkuZhJdUDVacQUA@mail.gmail.com>
References: <CA+wokJ-qqgzP5YnsSHkJRZxSxA20BZnWqgJfkuZhJdUDVacQUA@mail.gmail.com>

On Sun, Feb 2, 2025 at 7:53 AM Edwin UY <[email protected]> wrote:

> Hi,
>
> I have PostgreSQL Instance that has several DBs.
> I assume there are instance specific and database specific parameter
> settings?
> How do I check this? Using the source column of pg_setting?
> Is this true for both Aurora PostgreSQL / RDS and non-AWS PostgreSQL?
>
> => \d pg_settings
>                View "pg_catalog.pg_settings"
>      Column      |  Type   | Collation | Nullable | Default
> -----------------+---------+-----------+----------+---------
>  name            | text    |           |          |
>  setting         | text    |           |          |
>
 [snip]

>
> select distinct source from pg_settings ;
>        source
> --------------------
>  client
>  configuration file
>  default
>  database
>  override
>  command line
> (6 rows)
>

What do you get when you run:
SELECT * FROM pg_setting WHERE source = ''database';

More important, though, is the fact that pg_settings does not have a
"datname" column.  Thus, it's values are all global to the instance.

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


view thread (3+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Parameter Settings - Instance-Database-Specific
  In-Reply-To: <CANzqJaCP0C63feoHBG-jCG_=MWrzhs6jNykANf_KrUHTtbuw+g@mail.gmail.com>

* 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