| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Allow PostgreSQL::Test::Cluster::start() to pass postmaster opti |
| Date: | 2026-07-20 12:43:19 |
| Message-ID: | E1wlnL5-000000001k0-1Z7x@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <masao(dot)fujii(at)gmail(dot)com>
Reviewed-by: JoongHyuk Shin <sjh910805(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHGQGwEpfE0CDUUODjBt7GO9U4ZF11hqga_Ci3wP8=O49oFKVw@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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2026-07-20 15:22:35 | pgsql: Fix restore of partitions with exclusion constraints |
| Previous Message | Álvaro Herrera | 2026-07-20 11:52:56 | pgsql: Fix LSN format in REPACK worker debug message |