pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
Date: Fri, 13 Jun 2025 11:56:37 +0900
Message-ID: <aEuTZb5WS9RIoZnb@paquier.xyz> (raw)
In-Reply-To: <CAKAnmmK+VU022r5AoHSJhyOfGy8tUgLgYcb6u5nBH-BPnKbKhw@mail.gmail.com>
References: <Zah-54B6fXv9JGXs@paquier.xyz>
	<CAO6_Xqr7kUtEv8UrWtYx33tksAwMehHiwaBJxyV9XmL0RVpZiA@mail.gmail.com>
	<ZaoGnyzK60CqwE4_@paquier.xyz>
	<CALDaNm2i=xY85Jhg5Pr+7-yTt_Ar3tQebrDGRvxB4j2VqWEOZw@mail.gmail.com>
	<6cece376-07c6-4075-87b6-937156814202@enterprisedb.com>
	<ZpnODDZT-aosIUAE@paquier.xyz>
	<ee4e5b89-ec77-4b95-ae87-d33e31e8a5e7@enterprisedb.com>
	<ZqCLRa5OxPqzqWh6@paquier.xyz>
	<3e694442-0df5-4f92-a08f-c5d4c4346b85@eisentraut.org>
	<CAKAnmmK+VU022r5AoHSJhyOfGy8tUgLgYcb6u5nBH-BPnKbKhw@mail.gmail.com>

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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (44+ messages)  latest in thread

Message-ID: <aEuTZb5WS9RIoZnb@paquier.xyz>
Permalink:  ../aEuTZb5WS9RIoZnb@paquier.xyz/
Also on:    postgresql.org/message-id/aEuTZb5WS9RIoZnb@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, htamfids@gmail.com, peter@eisentraut.org, vignesh21@gmail.com, anthonin.bonnefoy@datadoghq.com, postgres@jeltef.nl
  Subject: Re: [PATCH] Add additional extended protocol commands to psql: \parse and \bindx
  In-Reply-To: <aEuTZb5WS9RIoZnb@paquier.xyz>
  References: <Zah-54B6fXv9JGXs@paquier.xyz> <CAO6_Xqr7kUtEv8UrWtYx33tksAwMehHiwaBJxyV9XmL0RVpZiA@mail.gmail.com> <ZaoGnyzK60CqwE4_@paquier.xyz> <CALDaNm2i=xY85Jhg5Pr+7-yTt_Ar3tQebrDGRvxB4j2VqWEOZw@mail.gmail.com> <6cece376-07c6-4075-87b6-937156814202@enterprisedb.com> <ZpnODDZT-aosIUAE@paquier.xyz> <ee4e5b89-ec77-4b95-ae87-d33e31e8a5e7@enterprisedb.com> <ZqCLRa5OxPqzqWh6@paquier.xyz> <3e694442-0df5-4f92-a08f-c5d4c4346b85@eisentraut.org> <CAKAnmmK+VU022r5AoHSJhyOfGy8tUgLgYcb6u5nBH-BPnKbKhw@mail.gmail.com> <aEuTZb5WS9RIoZnb@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox