Re: Clarification in pg10's pgupgrade.html step 10 (upgrading standby servers)

From: Michael Banck <michael(dot)banck(at)credativ(dot)de>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Andreas Joseph Krogh <andreas(at)visena(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Clarification in pg10's pgupgrade.html step 10 (upgrading standby servers)
Date: 2017-09-13 17:39:31
Message-ID: 20170913173931.GA12194@nighthawk.caipicrew.dd-dns.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 12, 2017 at 07:38:40PM -0400, Stephen Frost wrote:
> Further, really, I think we should provide a utility to do all of the
> above instead of using rsync- and that utility should do some additional
> things, such as:
>
> - Check that the control file on the primary and replica show that they
> reached the same point prior to the pg_upgrade. If they didn't, then
> things could go badly as there's unplayed WAL that the primary got
> through and the replica didn't.
>
> - Not copy over unlogged data, or any other information that shouldn't
> be copied across.
>
> - Allow the directory structures to be more different between the
> primary and the replica than rsync allows (wouldn't have to have a
> common subdirectory on the replica).
>
> - Perhaps other validation checks or similar.
>
> Unfortunately, this is a bit annoying as it necessairly involves running
> things on both the primary and the replica from the same tool, without
> access to PG, meaning we'd have to work through something else (such as
> SSH, like rsync does, but then what would we do for Windows...?).

Maybe pg_rewind's mechanism could be partially reused for this as it
seems to accomplish something vaguely similar AIUI?

Michael

--
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax: +49 2166 9901-100
Email: michael(dot)banck(at)credativ(dot)de

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pierre Ducroquet 2017-09-13 17:53:50 Re: Small patch for pg_basebackup argument parsing
Previous Message Pierre Ducroquet 2017-09-13 17:17:15 Re: Bug with pg_basebackup and 'shared' tablespace