pgsql: Abort pgbench if script end is reached with an open pipeline

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Abort pgbench if script end is reached with an open pipeline
Дата
Msg-id E1rRxVN-002bsm-2P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Abort pgbench if script end is reached with an open pipeline

When a pipeline is opened with \startpipeline and not closed, pgbench
will either error on the next transaction with a "already in pipeline
mode" error or successfully end if this was the last transaction --
despite not sending anything that was piped in the pipeline.

Make it an error to reach end of script is reached while there's an
open pipeline.

Backpatch to 14, where pgbench got support for pipelines.

Author: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Reported-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/Za4IObZkDjrO4TcS@paquier.xyz

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3fd36be52b70b95eea6fe7d296ce871f49eedb50

Modified Files
--------------
src/bin/pgbench/pgbench.c                    | 15 +++++++++++++--
src/bin/pgbench/t/001_pgbench_with_server.pl | 28 ++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Test EXPLAIN (FORMAT JSON) ... XMLTABLE
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix two memcpy() bugs in the new injection point code