From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tanja Savic <tanja.savic@crossmasters.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Move configuration files with pg_upgrade
Date: Thu, 4 Jun 2020 15:26:07 -0700
Message-ID: <0286cb3e-15bd-6577-ad13-bd0d21571565@aklaver.com> (raw)
In-Reply-To: <VI1PR02MB3023CA0C317C0CEB3D5DC18C94890@VI1PR02MB3023.eurprd02.prod.outlook.com>
References: <VI1PR02MB3023CA0C317C0CEB3D5DC18C94890@VI1PR02MB3023.eurprd02.prod.outlook.com>
On 6/4/20 12:52 PM, Tanja Savic wrote:
> Hello,
>
> I did Postgresql upgrade from v10 to v12 using pg_upgrade (on Linux
> Ubuntu server).
> Of course i wanted settings inpg_hba.conf and postgresql.conf to keep,
> but after the upgrade there were new configuration files and I moved it
> manually.
That is documented:
https://www.postgresql.org/docs/12/pgupgrade.html
"
Restore pg_hba.conf
If you modified pg_hba.conf, restore its original settings. It might
also be necessary to adjust other configuration files in the new cluster
to match the old cluster, e.g. postgresql.conf.
"
The new version's conf files will probably have new settings available
so this is something that should be reviewed before moving over. One way
to deal with this is include file(s):
https://www.postgresql.org/docs/12/config-setting.html#CONFIG-INCLUDES
Using them you create the settings you want to manage in the include
file. Then copy that over and set the include 'some_file' in the new
postgresql.conf and you are good.
>
> Is it possible somehow to migrate these old
> configuration files with pg_upgrade or it shall be done manually?
>
> Cheers,
> Tanja
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, tanja.savic@crossmasters.com
Subject: Re: Move configuration files with pg_upgrade
In-Reply-To: <0286cb3e-15bd-6577-ad13-bd0d21571565@aklaver.com>
References: <VI1PR02MB3023CA0C317C0CEB3D5DC18C94890@VI1PR02MB3023.eurprd02.prod.outlook.com> <0286cb3e-15bd-6577-ad13-bd0d21571565@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox