Refactor one use of IDENTIFY_SYSTEM in WAL streaming code of pg_basebackup
authorMichael Paquier <michael@paquier.xyz>
Tue, 31 Aug 2021 01:19:38 +0000 (10:19 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 31 Aug 2021 01:19:38 +0000 (10:19 +0900)
commit99709c9b908eba99ecd787c4dc757f71edd98d87
tree6dde32ca7065f5f34a9030c5b96149cc1e51ebd8
parent961dd7565726a507d4551f7ea54ad888fc6ee93a
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
src/bin/pg_basebackup/receivelog.c