mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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@oss.nttdata.com> Reviewed-by: Julien Rouhaud <rjuju123@gmail.com> Discussion: https://postgr.es/m/d87e391694db75a038abc3b2597828e8@oss.nttdata.com
This commit is contained in:
@ -487,7 +487,7 @@
|
||||
|
||||
<para>
|
||||
Plannable queries (that is, <command>SELECT</command>, <command>INSERT</command>,
|
||||
<command>UPDATE</command>, and <command>DELETE</command>) are combined into a single
|
||||
<command>UPDATE</command>, <command>DELETE</command>, and <command>MERGE</command>) are combined into a single
|
||||
<structname>pg_stat_statements</structname> entry whenever they have identical query
|
||||
structures according to an internal hash calculation. Typically, two
|
||||
queries will be considered the same for this purpose if they are
|
||||
@ -783,7 +783,7 @@
|
||||
<varname>pg_stat_statements.track_utility</varname> controls whether
|
||||
utility commands are tracked by the module. Utility commands are
|
||||
all those other than <command>SELECT</command>, <command>INSERT</command>,
|
||||
<command>UPDATE</command> and <command>DELETE</command>.
|
||||
<command>UPDATE</command>, <command>DELETE</command>, and <command>MERGE</command>.
|
||||
The default value is <literal>on</literal>.
|
||||
Only superusers can change this setting.
|
||||
</para>
|
||||
|
Reference in New Issue
Block a user