From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
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: Tue, 23 Apr 2024 13:01:04 -0400
Message-ID: <3496529.1713891664@sss.pgh.pa.us> (raw)
In-Reply-To: <ZicLgnRAQfQdK4ZO@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>
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Apr 22, 2024 at 06:46:27PM +0200, Matthias van de Meent wrote:
>> On Mon, 22 Apr 2024 at 17:41, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> I think it would be a good idea to push 0003 for v17, just so nobody
>>> grows an unnecessary dependency on that field. 0001 and 0005 could
>>> be left for v18, but on the other hand they're so trivial that it
>>> could also be sensible to just push them to get them out of the way.
> Tweaking the APIs should be OK until GA, as long as we agree that the
> current interfaces can be improved.
> 0003 is new in v17, so let's apply it now. I don't see much a strong
> argument in waiting for the removal of 0001 and 0005, either, to keep
> the interfaces cleaner moving on. However, this is not a regression
> and these have been around for years, so I'd suggest for v18 to open
> before moving on with the removal.
I went ahead and pushed 0001 and 0003, figuring there was little
point in waiting on 0001. I'd intended to push 0005 (remove "isall")
as well, but it failed check-world:
inline patch 1: /home/postgres/pgsql/contrib/pg_stat_statements/results/utility.out (+2/-3 lines) download inline-1.patchdiff -U3 /home/postgres/pgsql/contrib/pg_stat_statements/expected/utility.out /home/postgres/pgsql/contrib/pg_stat_statements/results/utility.out
--- /home/postgres/pgsql/contrib/pg_stat_statements/expected/utility.out 2023-12-08 15:14:55.689347888 -0500+++ /home/postgres/pgsql/contrib/pg_stat_statements/results/utility.out 2024-04-23 12:17:22.187721947 -0400@@ -536,12 +536,11 @@
SELECT calls, rows, query FROM pg_stat_statements ORDER BY query COLLATE "C";
calls | rows | query
-------+------+----------------------------------------------------
- 2 | 0 | DEALLOCATE $1- 2 | 0 | DEALLOCATE ALL+ 4 | 0 | DEALLOCATE $1
2 | 2 | PREPARE stat_select AS SELECT $1 AS a
1 | 1 | SELECT $1 as a
1 | 1 | SELECT pg_stat_statements_reset() IS NOT NULL AS t
-(5 rows)+(4 rows)
SELECT pg_stat_statements_reset() IS NOT NULL AS t;
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?
regards, tom lane
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: tgl@sss.pgh.pa.us, michael@paquier.xyz, boekewurm+postgres@gmail.com, etsuro.fujita@gmail.com, amit.kapila16@gmail.com
Subject: Re: Cleanup: remove unused fields from nodes
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>
* 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