diff --git a/regression/expected/pgsm_query_id.out b/regression/expected/pgsm_query_id.out index c57e91c0..db920d2c 100644 --- a/regression/expected/pgsm_query_id.out +++ b/regression/expected/pgsm_query_id.out @@ -30,7 +30,7 @@ SELECT * FROM t1; --- (0 rows) -SELECT *, ADD(1, 2) FROM t1; +SELECT *, ADD(1234, 1000) FROM t1; a | add ---+----- (0 rows) @@ -62,7 +62,7 @@ SELECT * FROM t1; --- (0 rows) -SELECT *, ADD(1, 2) FROM t1; +SELECT *, ADD(1234, 1000) FROM t1; a | add ---+----- (0 rows) @@ -87,12 +87,12 @@ SELECT datname, pgsm_query_id, query, calls FROM pg_stat_monitor ORDER BY pgsm_q db1 | 1897482803466821995 | SELECT * FROM t2 | 3 db1 | 1988437669671417938 | SELECT * FROM t1 | 1 db2 | 1988437669671417938 | SELECT * FROM t1 | 1 - db1 | 2864453209316739369 | select 1 + 2 | 1 - db2 | 2864453209316739369 | select 1 + 2 | 1 + db1 | 2864453209316739369 | select 1234 + 1000 | 1 + db2 | 2864453209316739369 | select 1234 + 1000 | 1 db2 | 6220142855706866455 | set pg_stat_monitor.pgsm_enable_pgsm_query_id = on | 1 db2 | 6633979598391393345 | SELECT * FROM t3 where c = 20 | 1 - db1 | 8140395000078788481 | SELECT *, ADD(1, 2) FROM t1 | 1 - db2 | 8140395000078788481 | SELECT *, ADD(1, 2) FROM t1 | 1 + db1 | 8140395000078788481 | SELECT *, ADD(1234, 1000) FROM t1 | 1 + db2 | 8140395000078788481 | SELECT *, ADD(1234, 1000) FROM t1 | 1 db2 | | SELECT * FROM t3 | 1 db2 | | set pg_stat_monitor.pgsm_enable_pgsm_query_id = off | 1 (12 rows) diff --git a/regression/expected/pgsm_query_id_1.out b/regression/expected/pgsm_query_id_1.out index ecd519b5..608b2bad 100644 --- a/regression/expected/pgsm_query_id_1.out +++ b/regression/expected/pgsm_query_id_1.out @@ -62,7 +62,7 @@ SELECT * FROM t1; --- (0 rows) -SELECT *, ADD(1, 2) FROM t1; +SELECT *, ADD(1234, 1000) FROM t1; a | add ---+----- (0 rows) @@ -89,8 +89,8 @@ SELECT datname, pgsm_query_id, query, calls FROM pg_stat_monitor ORDER BY pgsm_q db2 | 1988437669671417938 | SELECT * FROM t1 | 1 db2 | 6220142855706866455 | set pg_stat_monitor.pgsm_enable_pgsm_query_id = on | 1 db2 | 6633979598391393345 | SELECT * FROM t3 where c = 20 | 1 - db1 | 8140395000078788481 | SELECT *, ADD(1, 2) FROM t1 | 1 - db2 | 8140395000078788481 | SELECT *, ADD(1, 2) FROM t1 | 1 + db1 | 8140395000078788481 | SELECT *, ADD(1234, 1000) FROM t1 | 1 + db2 | 8140395000078788481 | SELECT *, ADD(1234, 1000) FROM t1 | 1 db2 | | SELECT * FROM t3 | 1 db2 | | set pg_stat_monitor.pgsm_enable_pgsm_query_id = off | 1 (10 rows) diff --git a/regression/sql/pgsm_query_id.sql b/regression/sql/pgsm_query_id.sql index f0d47c24..ba2288a7 100644 --- a/regression/sql/pgsm_query_id.sql +++ b/regression/sql/pgsm_query_id.sql @@ -27,7 +27,7 @@ CREATE FUNCTION add(integer, integer) RETURNS integer SELECT pg_stat_monitor_reset(); \c db1 SELECT * FROM t1; -SELECT *, ADD(1, 2) FROM t1; +SELECT *, ADD(1234, 1000) FROM t1; SELECT * FROM t2; -- Check that spaces and comments do not generate a different pgsm_query_id SELECT * FROM t2 --WHATEVER; @@ -40,7 +40,7 @@ More comments to check for spaces. \c db2 SELECT * FROM t1; -SELECT *, ADD(1, 2) FROM t1; +SELECT *, ADD(1234, 1000) FROM t1; set pg_stat_monitor.pgsm_enable_pgsm_query_id = off; SELECT * FROM t3;