[HACKERS] pg_stop_backup(wait_for_archive := true) on standby server - Mailing list pgsql-hackers

From Masahiko Sawada
Subject [HACKERS] pg_stop_backup(wait_for_archive := true) on standby server
Date
Msg-id CAD21AoC2Xw6M=ZJyejq_9d_iDkReC_=rpvQRw5QsyzKQdfYpkw@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] pg_stop_backup(wait_for_archive := true) on standby server  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Hi,

Since an optional second argument wait_for_archive of pg_stop_backup
has been  introduced in PostgreSQL 10 we can choose whether wait for
archiving. But my colleagues found that we can do pg_stop_backup with
wait_for_archive = true on the standby server but it actually doesn't
wait for WAL archiving. Because this behavior is not documented and we
cannot find out it without reading source code it will confuse the
user.

I think we can raise an error when pg_stop_backup with
wait_for_archive = true is executed on the standby. Attached patch
change it so that.

Regards,

--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Kang Yuzhe
Date:
Subject: [HACKERS] SQL MERGE patches for PostgreSQL Versions
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] SQL MERGE patches for PostgreSQL Versions