Re: Add Pipelining support in psql
Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
From: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>,
Michael Paquier <michael@paquier.xyz>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-03-17T09:50:50Z
Lists: pgsql-hackers
Attachments
- v02-0001-psql-Create-new-sendpipeline-meta-command.patch (application/octet-stream)
- v02-0002-psql-Allow-to-add-queries-in-an-ongoing-pipeline.patch (application/octet-stream)
Here is a new patch set: 0001: This introduces the \sendpipeline meta-command and forbid \g in a pipeline. This is to fix the formatting options of \g that are not supported in a pipeline. 0002: Allows ';' to send a query using extended protocol when within a pipeline by using PQsendQueryParams with 0 parameters. It is not possible to send parameters with extended protocol this way and everything will be propagated through the query string, similar to a simple query.