postgresql/contrib/pg_stat_statements/expected
Michael Paquier 11c34b342b Show parameters of CALL as constants in pg_stat_statements
This commit changes the query jumbling of CallStmt so as its IN/OUT
parameters are able to show up as constants with a parameter symbol in
pg_stat_statements, like:
CALL proc1($1, $2);
CALL proc2($1, $2, $3);

The transformed FuncExpr is used in the query ID computation instead of
the FuncCall generated by the parser, so as it is sensitive to the OID
of the procedure and its list of input arguments.  The output arguments
are handled in a separate list in CallStmt, which is also included in
the computation.

Tests are added to pg_stat_statements to show how this affects CALL with
IN/OUT parameters as well as overloaded functions.

Like 638d42a3c5 or 31de7e60da, this improves the monitoring of
workloads with a lot of CALL statements, preventing unnecessary bloat
when these use different input (or event output) values.

Author: Sami Imseih
Discussion: https://postgr.es/m/B44FA29D-EBD0-4DD9-ABC2-16F1CB087074@amazon.com
2023-09-28 15:17:55 +09:00
..
cleanup.out Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
cursors.out Reflect normalization of query strings for utilities in pg_stat_statements 2023-03-08 15:00:50 +09:00
dml.out Fix tracking of temp table relation extensions as writes 2023-09-13 19:14:09 -07:00
level_tracking.out Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
oldextversions.out Add JIT counters to pg_stat_statements 2022-04-08 13:52:16 +02:00
planning.out Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
select.out Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00
user_activity.out Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
utility.out Show parameters of CALL as constants in pg_stat_statements 2023-09-28 15:17:55 +09:00
wal.out Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00