pgsql: Backport BackgroundPsql perl test module - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Backport BackgroundPsql perl test module
Date
Msg-id E1sMs54-003Fhq-74@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/31877cd8ec8ce59df4d485057117dba2528af2eb

Modified Files
--------------
contrib/amcheck/t/003_cic_2pc.pl                   |  70 ++---
src/bin/psql/t/010_tab_completion.pl               |  28 +-
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm    | 310 +++++++++++++++++++++
src/test/perl/PostgresNode.pm                      |  86 ++----
.../recovery/t/010_logical_decoding_timelines.pl   |   1 -
src/test/recovery/t/031_recovery_conflict.pl       |  98 ++-----
src/test/recovery/t/037_invalid_database.pl        |  50 +---
src/test/subscription/t/015_stream.pl              |  20 +-
8 files changed, 405 insertions(+), 258 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Drop the temporary tuple slots allocated by pgoutput.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Fix thinkos in comments