diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-01-22 17:48:30 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-01-22 17:48:30 +0100 |
commit | 49f7c6c44a5f6a7f7b39d140e490c9c627511893 (patch) | |
tree | b79a71bf9918266472b51ee7b5c62422cf858977 /contrib/postgres_fdw/sql/postgres_fdw.sql | |
parent | 752533d40fd50de0b09d4b956cc32c38f5df2f05 (diff) | |
download | postgresql-49f7c6c44a5f6a7f7b39d140e490c9c627511893.tar.gz postgresql-49f7c6c44a5f6a7f7b39d140e490c9c627511893.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions