Allow PostgreSQL::Test::Cluster::start() to pass postmaster options

Previously, tests that needed extra postmaster command-line options had
to invoke pg_ctl start directly, because
PostgreSQL::Test::Cluster::start() provided no way to pass them. That
bypassed the test framework's postmaster PID tracking, so a postmaster
could be left running if the test failed after startup.

Add an options parameter to
PostgreSQL::Test::Cluster::start(), which is passed to pg_ctl's
--options argument. This allows tests to use start() while
preserving the framework's normal cleanup behavior.

Author: Fujii Masao <[email protected]>
Reviewed-by: JoongHyuk Shin <[email protected]>
Discussion: 
https://postgr.es/m/CAHGQGwEpfE0CDUUODjBt7GO9U4ZF11hqga_Ci3wP8=o49of...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1009339b3acaf06b457a8182bf50b504847a643c

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Reply via email to