agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Apply some query jumbling to WAIT FOR LSN
Date: Wed, 02 Sep 2026 05:14:51 +0000
Message-ID: <E1x1dJB-000000038IL-3qOj@gemulon.postgresql.org> (raw)

Apply some query jumbling to WAIT FOR LSN

The query is now stored as normalized in pg_stat_statements, with its
LSN position ignored in the jumbling, resulting in:
WAIT FOR LSN $1;

The option values in the WITH clause are left untouched.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Author: Sirisha Chamarthi <sirichamarthi22@gmail.com>
Reviewed-by: Sami Imseih <samimseih.pg@gmail.com>
Reviewed-by: Rithvika Devisetti <devisettirithvika@gmail.com>
Discussion: https://postgr.es/m/1f04f78c-2cfa-47a0-997f-f02572cd10eb@eisentraut.org
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7635a3206797a9c793bcf2e43d107c9fe08dc17d

Modified Files
--------------
contrib/pg_stat_statements/expected/utility.out | 41 +++++++++++++++++++++++++
contrib/pg_stat_statements/sql/utility.sql      | 10 ++++++
src/backend/parser/gram.y                       |  1 +
src/include/nodes/parsenodes.h                  |  8 +++--
4 files changed, 58 insertions(+), 2 deletions(-)



view thread (2+ messages)

Message-ID: <E1x1dJB-000000038IL-3qOj@gemulon.postgresql.org>
Permalink:  ../E1x1dJB-000000038IL-3qOj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x1dJB-000000038IL-3qOj@gemulon.postgresql.org

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Apply some query jumbling to WAIT FOR LSN
  In-Reply-To: <E1x1dJB-000000038IL-3qOj@gemulon.postgresql.org>

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

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