Add more tests for utility commands in pipelines
authorMichael Paquier <michael@paquier.xyz>
Sun, 23 Feb 2025 07:43:07 +0000 (16:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 23 Feb 2025 07:43:07 +0000 (16:43 +0900)
commita4e986ef5a4698b43a3a9b11791b282734938ed1
treebbdf9b4655d831e272520ac5818f1c88a0b0bf9f
parentf98765f0ce90e465e35c809f4b3caaeeb3d24610
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.bonnefoy@datadoghq.com>
Discussion: https://postgr.es/m/CAO6_XqroE7JuMEm1sWz55rp9fAYX2JwmcP_3m_v51vnOFdsLiQ@mail.gmail.com
src/test/regress/expected/psql_pipeline.out
src/test/regress/sql/psql_pipeline.sql