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 1tudpj-00AO4Z-D0 for pgsql-admin@arkaria.postgresql.org; Tue, 18 Mar 2025 20:46:43 +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 1tudpi-005DXC-2h for pgsql-admin@arkaria.postgresql.org; Tue, 18 Mar 2025 20:46:42 +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 1tudph-005DX3-N5 for pgsql-admin@lists.postgresql.org; Tue, 18 Mar 2025 20:46:41 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tudpf-003Zcj-1C for pgsql-admin@lists.postgresql.org; Tue, 18 Mar 2025 20:46:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=Zyse58T6gWAEGVoMEoD2jdt2rblLVXjl8B5dhc+4YBo=; b=NxXURmTdIsPx+OewxMPilz2Hap kpopocgg9etC8ieCPX5dC0Eolk0qHQPbCCCq+iEPjfHx8mYQIcNDbaYrAuDuduikQ+t1eHv8LTlE3 PRafwy2qiWbEtKqW55uaR0ewwdNs2MRGl41yz+Tljb6gV7RU5hnKfLOkRLra8mjyCHGkw10Nw8Tk3 /ZumlblgLFTL3M17IMnjCPZsyEc0Vui+c4zqlMZFsl0zD/BSwT3akmwPvPyNMNGK848o6GVlk0gES WN1Kzpd5QhhvoLuTk+0AX9VfDo97M9gRrdNIXup6CrjLvTy8CCPZIMHhc97ZWItKhzKbj2fxWxRlH yYY7V+2Q==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1tudpe-001nqe-04; Tue, 18 Mar 2025 16:46:38 -0400 Date: Tue, 18 Mar 2025 16:46:38 -0400 From: Bruce Momjian To: Ron Johnson Cc: Pgsql-admin Subject: Re: Comparing Parameters PRE- and POST- Upgrade - Any script? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.