Add option to specify timeout seconds to BackgroundPsql.pm.
authorMasahiko Sawada <msawada@postgresql.org>
Thu, 30 Nov 2023 05:08:34 +0000 (14:08 +0900)
committerMasahiko Sawada <msawada@postgresql.org>
Thu, 30 Nov 2023 05:08:34 +0000 (14:08 +0900)
commit334f512f45ebc946ca1a5aa51808b4447f6384a0
tree4365c4956ed42d38938dcda11ef7e3b893acf787
parenta1827568d22fba9e33044b8cfc5eb19e55ad5488
Add option to specify timeout seconds to BackgroundPsql.pm.

Previously, a background psql session uses the default timeout and it
cannot be overridden. This change adds a new option to set the timeout
during start.

There are no users of this new option. It is needed for an upcoming
patch adding tests for XID wraparound.

Reviewed-by: Daniel Gustafsson, Noah Misch
Discussion: https://postgr.es/m/C9CF2F76-0D81-4C9D-9832-202BE8517056%40yesql.se
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
src/test/perl/PostgreSQL/Test/Cluster.pm