pgsql: Refactor one use of IDENTIFY_SYSTEM in WAL streaming code of pg_

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor one use of IDENTIFY_SYSTEM in WAL streaming code of pg_
Date: 2021-08-31 01:20:59
Message-ID: E1mKsSR-0005I0-EH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor one use of IDENTIFY_SYSTEM in WAL streaming code of pg_basebackup

0c013e0 has done a large refactoring to unify all the code paths using
replication commands, but forgot one code path doing WAL streaming that
checks the validity of a cluster connecting to with IDENTIFY_SYSTEM.
There is a generic routine able to handle that, so make use of it in
this code path. This impacts pg_receivewal and pg_basebackup.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACVKKYUMC8GE72Y7BP9g1batrrq3sEwUh+1_i2krWZC_2Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99709c9b908eba99ecd787c4dc757f71edd98d87

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2021-08-31 02:08:59 RE: Separate out FileSet from SharedFileSet (was Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o)
Previous Message Alvaro Herrera 2021-08-30 20:31:19 pgsql: Report tuple address in data-corruption error message