Re: Comparing Parameters PRE- and POST- Upgrade - Any script?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Comparing Parameters PRE- and POST- Upgrade - Any script?
Date: 2025-03-18 20:46:38
Message-ID: Z9nbrpD83Fj-AJmJ@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Mar 5, 2025 at 04:24:24PM -0500, Ron Johnson wrote:
> The default postgresql.conf file might change across versions.
>
> I remove everything from postgresql except for site-specific customizations,
> and copy those and pg_hba.conf over.
>
> There's certainly no harm in doing "SELECT name, setting, unit FROM pg_settings
> ORDER BY name;" on the old instance, and then on the new instance after it's
> properly configured.

You can query just the changed values with:

SELECT name, current_setting(name), source
FROM pg_settings
WHERE source NOT IN ('default', 'override');

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Do not let urgent matters crowd out time for investment in the future.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Edwin UY 2025-03-18 23:01:37 Re: Comparing Parameters PRE- and POST- Upgrade - Any script?
Previous Message Sbob 2025-03-18 18:28:39 GPG signature verification error: Signing key not found