[PATCH] Add additional extended protocol commands to psql: \parse and \bindx

From: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
Date: 2023-11-02 09:52:36
Message-ID: CAO6_XqpSq0Q0kQcVLCbtagY94V2GxNP3zCnR6WnOM8WqXPK4nw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all!

Currently, only unnamed prepared statements are supported by psql with the
\bind command and it's not possible to create or use named prepared statements
through extended protocol.

This patch introduces 2 additional commands: \parse and \bindx.
\parse allows us to issue a Parse message to create a named prepared statement
through extended protocol.
\bindx allows to bind and execute a named prepared statement through extended
protocol.

The main goal is to provide more ways to test extended protocol in
regression tests
similarly to what \bind is doing.

Regards,
Anthonin

Attachment Content-Type Size
0001-psql-Add-support-for-prepared-stmt-with-extended-pro.patch application/octet-stream 15.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2023-11-02 10:11:25 Re: pg_upgrade and logical replication
Previous Message Stefan Kaltenbrunner 2023-11-02 09:51:03 Re: Including Doxyfile and Meson script for docs into main source tree