Fix pg_stat_statements for MERGE

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 72abf03b6491a8df880e1fea45798797bcc86c47
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2022-09-27T08:44:42Z
Releases: 15.0
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

Files

Documentation touched

Discussion