pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Additional tests for subtransactions in recovery
2+ messages / 2 participants
[nested] [flat]

* pgsql: Additional tests for subtransactions in recovery
@ 2017-04-27 12:28 Simon Riggs <simon@2ndQuadrant.com>
  2017-04-27 12:41 ` Re: pgsql: Additional tests for subtransactions in recovery Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Simon Riggs @ 2017-04-27 12:28 UTC (permalink / raw)
  To: pgsql-committers

Additional tests for subtransactions in recovery

Tests for normal and prepared transactions

Author: Nikhil Sontakke, placed in new test file by me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0352c15e5ab4f70c3ab2ac1d48d9f38a5dd11786

Modified Files
--------------
src/test/recovery/t/009_twophase.pl        |  39 +-----
src/test/recovery/t/012_subtransactions.pl | 197 +++++++++++++++++++++++++++++
2 files changed, 198 insertions(+), 38 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pgsql: Additional tests for subtransactions in recovery
  2017-04-27 12:28 pgsql: Additional tests for subtransactions in recovery Simon Riggs <simon@2ndQuadrant.com>
@ 2017-04-27 12:41 ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2017-04-27 12:41 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndquadrant.com>; +Cc: pgsql-committers

On Thu, Apr 27, 2017 at 9:28 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Additional tests for subtransactions in recovery
>
> Tests for normal and prepared transactions
>
> Author: Nikhil Sontakke, placed in new test file by me

+$node_slave->promote;
+$node_slave->poll_query_until('postgres',
+   "SELECT NOT pg_is_in_recovery()")
+  or die "Timed out while waiting for promotion of standby";

This reminds me that we should really switch PostgresNode::promote to
use the wait mode of pg_ctl promote, and remove all those polling
queries...
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-04-27 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-04-27 12:28 pgsql: Additional tests for subtransactions in recovery Simon Riggs <simon@2ndQuadrant.com>
2017-04-27 12:41 ` Michael Paquier <michael.paquier@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox