]> granicus.if.org Git - postgresql/commit
Teach pg_stat_statements not to ignore FOR UPDATE clauses
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Sun, 14 Jul 2019 11:07:40 +0000 (12:07 +0100)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Sun, 14 Jul 2019 11:07:40 +0000 (12:07 +0100)
commit6e74c64bcf61eab94091f6b17dfd0ab585b1a77e
tree880110014dacc1b8eb53f1e4be2c51ca43ff7b81
parent0369f4736665864edd7bf43736df190afa223c4c
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
contrib/pg_stat_statements/expected/pg_stat_statements.out
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_stat_statements/sql/pg_stat_statements.sql