public inbox for [email protected]
help / color / mirror / Atom feedFrom: Stephen Frost <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: [email protected]
Subject: Re: Improve documentation for pg_upgrade, standbys and rsync
Date: Wed, 19 May 2021 10:31:35 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Greetings,
* Laurenz Albe ([email protected]) wrote:
> I revently tried to upgrade a standby following the documentation,
> but I found it hard to understand, and it took me several tries to
> get it right. This is of course owing to my lack of expertise with
> rsync, but I think the documentation and examples could be clearer.
>
> I think it would be a good idea to recommend the --relative option
> of rsync.
>
> Here is a patch that does that, as well as update the versions in
> the code samples to something more recent. Also, I think it makes
> sense to place the data directory in the sample in /var/lib/postgresql,
> which is similar to what many people will have in real life.
Haven't had a chance to look at this in depth but improving things here
would be good.
An additional thing that we should really be mentioning is to tell
people to go in and TRUNCATE all of their UNLOGGED tables before going
through this process, otherwise the rsync will end up spending a bunch
of time copying the files for UNLOGGED relations which you really don't
want.
Thanks,
Stephen
Attachments:
[application/pgp-signature] signature.asc (819B, 2-signature.asc)
download
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], [email protected]
Subject: Re: Improve documentation for pg_upgrade, standbys and rsync
In-Reply-To: <[email protected]>
* 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