PG-362: pgsm_normalized_query needs to be 0 by default. (#253)

pg_stat_monitor.pgsm_normalized_query needs to be 0 by default because
people will get Query examples. This is one of the main user-faced
advantages of pgsm over pgss (pg_stat_statements).
This commit is contained in:
Ibrar Ahmed
2022-06-09 16:13:58 +05:00
committed by GitHub
parent 1b89fa1814
commit d5ce83738f
25 changed files with 109 additions and 161 deletions

View File

@@ -8544,11 +8544,11 @@ SELECT query, rows_retrieved FROM pg_stat_monitor ORDER BY query COLLATE "C";
query | rows_retrieved
------------------------------------------------------------------------------+----------------
SELECT * FROM t1 | 1000
SELECT * FROM t1 LIMIT $1 | 10
SELECT * FROM t1 LIMIT 10 | 10
SELECT * FROM t2 | 5000
SELECT pg_stat_monitor_reset() | 1
SELECT query, rows_retrieved FROM pg_stat_monitor ORDER BY query COLLATE "C" | 0
SELECt * FROM t2 WHERE b % $1 = $2 | 2500
SELECt * FROM t2 WHERE b % 2 = 0 | 2500
(6 rows)
SELECT pg_stat_monitor_reset();