Re: pg_basebackup against older server versions - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pg_basebackup against older server versions
Date
Msg-id 20190306090945.GK30982@paquier.xyz
Whole thread Raw
In response to pg_basebackup against older server versions  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: pg_basebackup against older server versions
List pgsql-hackers
On Wed, Mar 06, 2019 at 11:55:12AM +0300, Devrim Gündüz wrote:
> Apologies if this has been discussed before: When I run pg_basebackup in git
> head against v11 server, it treats v11 as v12: Does not create recovery.conf,
> adds recovery parameters to postgresql.auto.conf, and also creates
> standby.signal file. Is this expected, or a bug?

You are right, this is a bug.  Compatibility with past server versions
should be preserved, and we made an effort to do so in the past (see
the switch to pg_wal/ for example).  Fortunately, maintaining the
compatibility is simple enough as the connection information is close
by so that we just need to change postgresql.auto.conf to
recovery.conf, and avoid the creation of standby.signal.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Ashwin Agrawal
Date:
Subject: Re: Make drop database safer
Next
From: Amit Langote
Date:
Subject: bug in update tuple routing with foreign partitions