[PATCH] PostgresNode.pm enhancements, pg_lsn helper, and some more recovery tests

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: [PATCH] PostgresNode.pm enhancements, pg_lsn helper, and some more recovery tests
Date: 2016-11-14 07:01:35
Message-ID: CAMsr+YFr6+xDwDR0Lg1KJH2Yq+006LX9OxtBZs_b6j2YyESxcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Every test I write with the TAP framework for recovery seems to need
to wait for one node to catch up to another or examine replication
slot state. So: attached is a patch to add helper methods for these
tasks.

Also add a new pg_lsn.pm helper class to deal with PostgreSQL's
awkward representation of LSNs in perl. Made extra fun by our use of
Perl 5.8.8 with no new modules, so we can't rely on having 64-bit
integers. Provides sensible LSN comparisons. I'll be using this in
coming patches that have to make assertions about differences between
LSNs, and I think it's sensible to have anyway. Incorporates tests for
the class.

Finally, add some coverage of physical replication slots to recovery tests.

Backpatch to 9.6 desirable, since we seem to be doing that for TAP
infrastructure.

These three are related enough, and all only touch the TAP framework,
so I've bundled them in a series.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
0003-Expand-streaming-replication-tests-to-cover-hot-stan.patch text/x-patch 6.1 KB
0002-Create-new-pg_lsn-class-to-deal-with-awkward-LSNs-in.patch text/x-patch 7.2 KB
0001-PostgresNode-methods-to-wait-for-node-catchup.patch text/x-patch 6.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-11-14 07:03:18 Re: [PATCH] PostgresNode.pm enhancements, pg_lsn helper, and some more recovery tests
Previous Message Craig Ringer 2016-11-14 06:55:18 Re: 9.6 TAP tests and extensions