Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
Date
Msg-id aEuTZb5WS9RIoZnb@paquier.xyz
Whole thread Raw
In response to Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx  (Greg Sabino Mullane <htamfids@gmail.com>)
Responses Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
List pgsql-hackers
On Thu, Jun 12, 2025 at 09:53:13PM -0400, Greg Sabino Mullane wrote:
> On Thu, Jun 12, 2025 at 9:14 AM Peter Eisentraut <peter@eisentraut.org>
> wrote:
>> And this is not something users ever see, so the connection would not be
>> obvious.  Maybe this should be called something more specific like
>> \close_stmt.
>
> Maybe just \closeprepared ?

I'm OK with a rename if people feel strongly about it and we still
have the time to do tweaks like that, but I don't like the suggestions
\close_stmt and \closeprepared, because that's inconsistent with the
other new meta-commands.

What about \close_named to be consistent with \bind_named?  We always
require a statement name when closing a prepared statement.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Use RELATION_IS_OTHER_TEMP where possible
Next
From: Fujii Masao
Date:
Subject: Re: Suggestions for improving \conninfo output in v18