pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthias van de Meent <boekewurm+postgres@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Subject: Re: Cleanup: remove unused fields from nodes
Date: Wed, 24 Apr 2024 11:57:05 +0900
Message-ID: <Zih1ATt37YFda8_p@paquier.xyz> (raw)
In-Reply-To: <3496529.1713891664@sss.pgh.pa.us>
References: <CAEze2WjsY4d0TBymLNGK4zpttUcg_YZaTjyWz2VfDUV6YH8wXQ@mail.gmail.com>
	<3069708.1713800470@sss.pgh.pa.us>
	<CAEze2Wj37_m9zbX8t+-9wnSBMa4V2oBdx3X9D-A7_+Onp0buUw@mail.gmail.com>
	<ZicLgnRAQfQdK4ZO@paquier.xyz>
	<3496529.1713891664@sss.pgh.pa.us>

On Tue, Apr 23, 2024 at 01:01:04PM -0400, Tom Lane wrote:
> That is, query jumbling no longer distinguishes "DEALLOCATE x" from
> "DEALLOCATE ALL", because the DeallocateStmt.name field is marked
> query_jumble_ignore.  Now maybe that's fine, but it's a point
> we'd not considered so far in this thread.  Thoughts?

And of course, I've managed to forget about bb45156f342c and the
reason behind the addition of the field is to be able to make the
difference between the named and ALL cases for DEALLOCATE, around
here:
https://www.postgresql.org/message-id/ZNq9kRwWbKzvR%2B2a%40paquier.xyz

This is new in v17, so perhaps it could be changed, but I think that's
important to make the difference here for monitoring purposes as
DEALLOCATE ALL could be used as a way to clean up prepared statements
in connection poolers (for example, pgbouncer's server_reset_query).
And doing this tweak in the Node structure of DeallocateStmt is
simpler than having to maintain a new pg_node_attr for query jumbling.
--
Michael

Attachments:

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

view thread (11+ messages)  latest in thread

Message-ID: <Zih1ATt37YFda8_p@paquier.xyz>
Permalink:  ../Zih1ATt37YFda8_p@paquier.xyz/
Also on:    postgresql.org/message-id/Zih1ATt37YFda8_p@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, tgl@sss.pgh.pa.us, boekewurm+postgres@gmail.com, etsuro.fujita@gmail.com, amit.kapila16@gmail.com
  Subject: Re: Cleanup: remove unused fields from nodes
  In-Reply-To: <Zih1ATt37YFda8_p@paquier.xyz>
  References: <CAEze2WjsY4d0TBymLNGK4zpttUcg_YZaTjyWz2VfDUV6YH8wXQ@mail.gmail.com> <3069708.1713800470@sss.pgh.pa.us> <CAEze2Wj37_m9zbX8t+-9wnSBMa4V2oBdx3X9D-A7_+Onp0buUw@mail.gmail.com> <ZicLgnRAQfQdK4ZO@paquier.xyz> <3496529.1713891664@sss.pgh.pa.us> <Zih1ATt37YFda8_p@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