pgsql: Add more tests for utility commands in pipelines

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more tests for utility commands in pipelines
Date: 2025-02-23 07:44:53
Message-ID: E1tm6fV-000Ghr-1D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add more tests for utility commands in pipelines

This commit checks interactions with pipelines and implicit transaction
blocks for the following commands that have their own behaviors when
used in pipelines depending on their order in a pipeline and sync
requests:
- SET LOCAL
- REINDEX CONCURRENTLY
- VACUUM
- Subtransactions (SAVEPOINT, ROLLBACK TO SAVEPOINT)

These scenarios could be tested only with pgbench previously. The
meta-commands of psql controlling pipelines make these easier to
implement, debug, and they can be run in a SQL script.

Author: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Discussion: https://postgr.es/m/CAO6_XqroE7JuMEm1sWz55rp9fAYX2JwmcP_3m_v51vnOFdsLiQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4e986ef5a4698b43a3a9b11791b282734938ed1

Modified Files
--------------
src/test/regress/expected/psql_pipeline.out | 112 ++++++++++++++++++++++++++++
src/test/regress/sql/psql_pipeline.sql | 72 ++++++++++++++++++
2 files changed, 184 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-02-23 11:42:34 pgsql: SnapBuildRestoreContents() void * argument for binary data
Previous Message Peter Eisentraut 2025-02-23 07:41:42 pgsql: jsonb internal API void * argument for binary data