Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tebQU-00EYaA-VL for pgsql-admin@arkaria.postgresql.org; Sun, 02 Feb 2025 14:58:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tebPU-007RYS-St for pgsql-admin@arkaria.postgresql.org; Sun, 02 Feb 2025 14:57:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tebPU-007RYJ-Hv for pgsql-admin@lists.postgresql.org; Sun, 02 Feb 2025 14:57:20 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tebPS-002nhf-1K for pgsql-admin@lists.postgresql.org; Sun, 02 Feb 2025 14:57:19 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-29fad34bb62so1981562fac.1 for ; Sun, 02 Feb 2025 06:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738508238; x=1739113038; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Ry0lAUPIX2dM/hlOWMaN+7EhT6HrzLfT6Gfq4flIpWA=; b=CBL/6/t+8Hu9dc6vgZOYPejwOMtp1Vas4hO0EpwDJRWQQlIJLmOGrSKX3hyDFIps7H 63mKg01tbIc+OvqDVBaUCQS/TqmjEPR4L2b92zRuStG0dqG0W9OmFhzBMjNk4VGP9RIQ x07pM4H1/xYZmXBKjplsI4uIx5izB5RWZ4DV1zruXnL54uDQo5bVnvn++xBZTRR7rZxk 4C2w0kcLrON7cWjAVClydmeisPlssiSRkXxKu2ySdVkrgvauXUFJc6QV8V/36NRd9lgE v9Q6cQdhLzrklzxjX3o27MzHc6xspvGjFuL6xH+hi4Qy9kq8gqCyQU2A15frABDCFrGz 8zAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738508238; x=1739113038; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ry0lAUPIX2dM/hlOWMaN+7EhT6HrzLfT6Gfq4flIpWA=; b=p4RjBqw09aiD1835ayBA9ihCpNeedri68QvaHzeRn5xqZxb0bnPS/i9XYhr3jAyTjg eMQtu9Jb7bHpHM4QphMcm1mNsx4Zp7seBj9XZBXxVyhtpBBG/wxu9pBnHabYq3ezF4wS 8CKP+3arjBUmRN/N8UiHsnHeTbdbc+70U/gg6CPC/O60E6A7Ze3wvMrtg2nU9EkzIHWy ELTAjjub6pc7eZCpAejtDF6i1/fcDiDEi3dd3FhZNCdRUW/hIp0FMviwNVnizLNXfQDD F/MYhlZVo+JOn4/QhiJKJX1gP1a+XVtCrXNPw+ip9UQP7li0IzKoG+NOrdiHMzAXu+Qw Yiew== X-Gm-Message-State: AOJu0YwZWDf4XUhlRbqIP2mX+HjoNWxqnGkhyCbjCR798deekolxUns0 a+hDbpCnFlx0dZKFJgXGS65ZpHKZ//x8Tsevkco+RnSECX4e47flfnCPTrdKclM9ZsK9sGYsfKJ 6nVGD7etJRaPkkSMUsWC71kZ5mnb6dg== X-Gm-Gg: ASbGncsyfTEdk7nwbrXpefzzjHEve3lZcl/fEMjptXDGlh6o6BtXfrlzes1xE4MaBLc peeI4QHyOOyDMAGrc8kgZ65nvnAWWVHa/4lgtOPXVz9Tq1wUhA99R3bjRek5DLly9wo5ew77qCQ lfbe7Cv5z5+dIczF0zYHYOBd4iVu84KR0= X-Google-Smtp-Source: AGHT+IHD3uKmQcMn9eKlwUZZUcVOz3FXhS+cbG5bVZc/hHn+fpiFPahZ2qNJ5r5cQGrx2YOsWu0lagc+xRhAbE46vKI= X-Received: by 2002:a05:6871:6307:b0:296:9c08:51a3 with SMTP id 586e51a60fabf-2b32f34d55bmr11015979fac.39.1738508237666; Sun, 02 Feb 2025 06:57:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Sun, 2 Feb 2025 09:57:06 -0500 X-Gm-Features: AWEUYZmpwt93ibisSV7zp8fskd_dwKRO56Y5iz6jWkvXiW-KzRxILtuSp7GFkec Message-ID: Subject: Re: Parameter Settings - Instance-Database-Specific To: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000f20559062d29fd67" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f20559062d29fd67 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 2, 2025 at 7:53=E2=80=AFAM Edwin UY 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? > > =3D> \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 =3D ''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. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000f20559062d29fd67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Feb 2, 2025 at 7= :53=E2=80=AFAM Edwin UY <edwin.uy@gmail.com> wrote:
=
Hi,

I have PostgreSQL Instance that has several DBs.
I assume there are instance specific and d= atabase specific parameter settings?
How do I check this? Using the source column of pg_set= ting?
Is this true f= or both Aurora PostgreSQL / RDS and non-AWS PostgreSQL?

=3D> \d pg_settings
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0=C2=A0 View "pg_catalog.pg_settings"
=C2=A0 =C2=A0 =C2= =A0Column =C2=A0 =C2=A0 =C2=A0| =C2=A0Type =C2=A0 | Collation | Nullable | = Default
-----------------+---------+-----------+----------+---------
= =C2=A0name =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| text =C2=A0 =C2=A0| = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0setting =C2=A0 =C2=A0 =C2=A0 =C2=A0 | text =C2=A0 =C2=A0| =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
=C2=A0[snip]

select di= stinct source from pg_settings ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0source
--= ------------------
=C2=A0client
=C2=A0configuration file
=C2=A0def= ault
=C2=A0database
=C2=A0override
=C2=A0command line
(6 rows)<= br>

What do you get whe= n you run:
SELECT * FROM pg_setting WHERE source =3D ''da= tabase';

More important, though, is the fact t= hat pg_settings does not have a "datname" column.=C2=A0 Thus, it&= #39;s values are all global to the instance.

--
Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.
<Redacted> lob= ster!
--000000000000f20559062d29fd67--