Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Michael Paquier <michael@paquier.xyz>,
Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: vignesh C <vignesh21@gmail.com>,
Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>,
Jelte Fennema-Nio <postgres@jeltef.nl>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-07-24T15:33:07Z
Lists: pgsql-hackers
On 24.07.24 07:04, Michael Paquier wrote: > This commit introduces three additional commands: \parse, \bindx and > \close. > \parse creates a prepared statement using extended protocol. > \bindx binds and execute an existing prepared statement using extended > protocol. > \close closes an existing prepared statement using extended protocol. This commit message confused me, because I don't think this is what the \bindx command actually does. AFAICT, it only binds, it does not execute. At least that is what the documentation in the content of the patch appears to indicate. I'm not sure \bindx is such a great name. The "x" stands for "I ran out of ideas". ;-) Maybe \bind_named or \bindn or something like that. Or use the existing \bind with a -name argument?
Commits
-
psql: Rename meta-command \close to \close_prepared
- fc39b286ad72 18.0 landed
-
psql: Add tests for repeated calls of \bind[_named]
- 91287b5f5da3 18.0 landed
-
psql: Fix memory leak with repeated calls of \bind
- c2fb2f9e200f 16.5 landed
- b0ae6db2088b 17.0 landed
-
psql: Clean up more aggressively state of \bind[_named], \parse and \close
- 87eeadaea143 18.0 landed
-
psql: Add more meta-commands able to use the extended protocol
- d55322b0da60 18.0 landed
-
psql: Add ignore_slash_options in bind's inactive branch
- 04c0897d3bca 17.0 landed