BUG #17235: PQsendQuery (with two sql) after PQenterPipelineMode cause ERROR

The Post Office <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rekgrpth@gmail.com
Date: 2021-10-18T11:09:09Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17235
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 14.0
Operating system:   docker alpine
Description:        

I use libpq in C.
I call PQsendQuery(conn, "select * from cats; select * from cats") after
PQenterPipelineMode.
This cause ERROR
cannot insert multiple commands into a prepared statement.
postgresql client 14
postgresql server 13.4

Commits

  1. Pipeline mode disallows multicommand strings