Move some code from RewindTest into PostgresNode

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 89ac7004dadf4116d9b180bb5ff64b64bfce94b1
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2016-02-26T16:24:22Z
Releases: 9.6.0
Move some code from RewindTest into PostgresNode

Some code in the RewindTest test suite is more generally useful than
just for that suite, so put it where other test suites can reach it.

Some postgresql.conf parameters change their default values when a
cluster is initialized with 'allows_streaming' than the previous
behavior; most notably, autovacuum is no longer turned off.

(Also, we no longer call pg_ctl promote with -w, but that flag doesn't
actually do anything in promote so there's no behavior change.)

Author: Michael Paquier

Files

PathChange+/−
src/bin/pg_rewind/RewindTest.pm modified +2 −17
src/test/perl/PostgresNode.pm modified +63 −8