pgsql: Fix pg_stat_statements for MERGE

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix pg_stat_statements for MERGE
Date: 2022-09-27 08:46:46
Message-ID: E1od6Eo-002Do8-Cy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix pg_stat_statements for MERGE

We weren't jumbling the merge action list, so wildly different commands
would be considered to use the same query ID. Add that, mention it in
the docs, and some test lines.

Backpatch to 15.

Author: Tatsu <bt22nakamorit(at)oss(dot)nttdata(dot)com>
Reviewed-by: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Discussion: https://postgr.es/m/d87e391694db75a038abc3b2597828e8@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/249b0409b181311bb1c375311e43eb767b5c3bdd

Modified Files
--------------
.../expected/pg_stat_statements.out | 41 +++++++++++++++++++++-
.../pg_stat_statements/sql/pg_stat_statements.sql | 22 ++++++++++++
doc/src/sgml/pgstatstatements.sgml | 4 +--
src/backend/nodes/nodeFuncs.c | 4 +--
src/backend/utils/misc/queryjumble.c | 11 ++++++
5 files changed, 77 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-09-27 12:12:26 pgsql: Improve some publication-related error messages
Previous Message Bharath Rupireddy 2022-09-27 06:17:37 Re: pg_upgrade test failure