Backport BackgroundPsql perl test module
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 16:00:59 +0000 (19:00 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 16:01:20 +0000 (19:01 +0300)
commit31877cd8ec8ce59df4d485057117dba2528af2eb
treeadbb5707ba4c42022afa181d42935f706c7f00fb
parent4c8e00ae9ae3b53c08a56b584e1b185668a2aff5
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/bin/psql/t/010_tab_completion.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
src/test/subscription/t/015_stream.pl