From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach pg_stat_statements not to ignore FOR UPDATE clauses
Date: Sun, 14 Jul 2019 11:18:01 +0000
Message-ID: <E1hmcW1-00061u-7R@gemulon.postgresql.org> (raw)
Teach pg_stat_statements not to ignore FOR UPDATE clauses
Performance of a SELECT FOR UPDATE may be quite distinct from the
non-UPDATE version of the query, so treat all of the FOR UPDATE clause
as being significant for distinguishing queries.
Andrew Gierth and Vik Fearing, reviewed by Sergei Kornilov, Thomas
Munro, Tom Lane
Discussion: https://postgr.es/m/87h8e4hfwv.fsf@news-spur.riddles.org.uk
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6e74c64bcf61eab94091f6b17dfd0ab585b1a77e
Modified Files
--------------
.../expected/pg_stat_statements.out | 87 ++++++++++++++++++++++
contrib/pg_stat_statements/pg_stat_statements.c | 23 +++++-
.../pg_stat_statements/sql/pg_stat_statements.sql | 31 ++++++++
3 files changed, 140 insertions(+), 1 deletion(-)
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-committers@postgresql.org
Cc: rhodiumtoad@postgresql.org
Subject: Re: pgsql: Teach pg_stat_statements not to ignore FOR UPDATE clauses
In-Reply-To: <E1hmcW1-00061u-7R@gemulon.postgresql.org>
References: <E1hmcW1-00061u-7R@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox