Backport BackgroundPsql perl test module
authorHeikki Linnakangas <[email protected]>
Thu, 27 Jun 2024 16:00:59 +0000 (19:00 +0300)
committerHeikki Linnakangas <[email protected]>
Thu, 27 Jun 2024 16:01:25 +0000 (19:01 +0300)
commit4b467a6581af0ff029133558ce1f1e55597b8be1
treee0fc078c40b7f6c44b694bacc575b94f410f0700
parentab46e132fa82cfcdd33accaa6eb18c887f3cd2a3
Backport BackgroundPsql perl test module

Backport the new BackgroundPsql modules and the constructor functions,
background_psql() and interactive_psql, to all supported
branches. That makes it easier to backpatch tests that use it.

BackgroundPsql was introduced in version 16. On version 16, this
commit backports just the new timeout argument from master (commit
334f512f45). On older branches, the whole facility. This includes the
change to `use warnings FATAL => 'all'`, which we haven't otherwise
backported, but it seems good to keep the file identical across
branches.

Discussion: https://www.postgresql.org/message-id/b7c64f20-ea01-4f15-9088-0cd6832af149@iki.fi
contrib/amcheck/t/003_cic_2pc.pl
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm [new file with mode: 0644]
src/test/perl/PostgresNode.pm
src/test/recovery/t/010_logical_decoding_timelines.pl
src/test/recovery/t/031_recovery_conflict.pl
src/test/recovery/t/037_invalid_database.pl