Using pg_ctl promote -w in TAP tests

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Using pg_ctl promote -w in TAP tests
Date: 2016-10-10 12:37:37
Message-ID: CAB7nPqQOz2Cef7k-hQ6A4DQ+kjty0fs0rmj8L48FDJk_OBgv_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

Now that we have support for the wait mode of pg_ctl promote, I think
that it would be a good idea to switch to it in the TAP tests. This
allows avoiding extra logic with poll_query_until() to be sure that a
promoted standby is ready for read-write queries.
See the patch attached.

Thanks,
--
Michael

Attachment Content-Type Size
tap-promote-wait.patch text/x-diff 2.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Verite 2016-10-10 12:38:20 Re: proposal: psql \setfileref
Previous Message Heikki Linnakangas 2016-10-10 12:21:24 Re: memory leak in e94568ecc10 (pre-reading in external sort)