pgsql: Fix compatibility of pg_basebackup -R with 11 and older versions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix compatibility of pg_basebackup -R with 11 and older versions
Date: 2019-03-08 01:18:05
Message-ID: E1h249F-0006WI-SE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix compatibility of pg_basebackup -R with 11 and older versions

When 2dedf4d9 has integrated recovery.conf into postgresql.conf, it also
changed pg_basebackup -R in the way recovery configuration is
generated. However this implementation forgot the fact that
pg_basebackup needs to keep compatibility with older server versions as
well.

Reported-by: Devrim Gündüz
Author: Sergei Kornilov, Michael Paquier
Discussion: https://postgr.es/m/3458f7cd12d74acd90180a671c8d5a081d60e162.camel@gunduz.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/beeb8e2e0717065296dc7b32daba2d66f0f931dd

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 109 +++++++++++++++++++++++++---------
1 file changed, 82 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-03-08 01:27:52 Re: pgsql: Removed unused variable, openLogOff.
Previous Message Alvaro Herrera 2019-03-07 21:20:38 pgsql: Fix minor deficiencies in XMLTABLE, xpath(), xmlexists()