Query jumbling
In-core query ID computation (compute_query_id) and query normalization: jumbling rules, constant list squashing, query ID reporting in pg_stat_activity, and their fixes.
Versions
- PostgreSQL 19 · shipped · improved · minor · 1 commit · +259 / -17 lines
- PostgreSQL 18 · shipped · improved · moderate · 11 commits · +2.6k / -569 lines
- pg_stat_statements and "IN" conditions
- Jumble the CALL command in pg_stat_statements
- support fix query_id for temp table
- Normalize queries starting with SET for pg_stat_statements
- pgsql: Introduce squashing of constant lists in query jumbling
- queryId constant squashing does not support prepared statements
- PostgreSQL 17 · shipped · improved · minor · 4 commits · +245 / -21 lines
- PostgreSQL 16 · shipped · improved · moderate · 13 commits · +3.6k / -2.8k lines
- PostgreSQL 15 · worked-on · improved · moderate
- PostgreSQL 14 · worked-on · improved · moderate
Threads
- Query jumbling of ROLLUP/CUBE, SEARCH/CYCLE and composite fields
- Re: pg_stat_statements replaces SQL/JSON ON EMPTY / ON ERROR keywords with parameters
- Query jumbling ignores XML names, ROLLUP/CUBE, VARIADIC and more
- Re: [MASSMAIL] pg_stat_statements replaces SQL/JSON ON EMPTY / ON ERROR keywords with parameters
- pg_stat_statements replaces SQL/JSON ON EMPTY / ON ERROR keywords with parameters
- BUG #19528: Assert failure in generate_normalized_query() via Squashed Array Literals
- pg_stat_statements: Fix normalization of + signs for FETCH and MOVE
- Refactor query normalization into core query jumbling
- JumbleQuery ma treat different GROUP BY expr as the same
- [[BUG] pg_stat_statements crashes with var and non-var expressions in IN clause
- Bug in pg_stat_statements
- bug reapper: Empty query_id in pg_stat_activity
- Empty query_id in pg_stat_activity
- 答复: Empty query_id in pg_stat_activity
- support fix query_id for temp table
- Improve explicit cursor handling in pg_stat_statements
- queryId constant squashing does not support prepared statements
- Regression in statement locations
- pgsql: Introduce squashing of constant lists in query jumbling
- RE: Query ID Calculation Fix for DISTINCT / ORDER BY and LIMIT / OFFSET
- pg_stat_statements and "IN" conditions
- Query ID Calculation Fix for DISTINCT / ORDER BY and LIMIT / OFFSET
- Set query_id for query contained in utility statement
- query_id, pg_stat_activity, extended query protocol
- Normalize queries starting with SET for pg_stat_statements
- query ID goes missing with extended query protocol
- Correctly propagate queryId for utility stmt in function
- Stability of queryid in minor versions
- RangeTblEntry jumble omissions
- Small fix on query_id_enabled
- Doubled test for SET statements in pg_stat_statements tests
- Jumble the CALL command in pg_stat_statements
- Ignore 2PC transaction GIDs in query jumbling
- Normalization of utility queries in pg_stat_statements
- Improve pg_stat_statements by making jumble handle savepoint names better
- Generating code for query jumbling through gen_node_support.pl
- Clean up JumbleQuery() from query text
- False sharing for PgBackendStatus, made worse by in-core query_id handling
- Missing rules for queryjumblefuncs.{funcs,switch}.c for maintainer-clean
- Force testing of query jumbling code in TAP tests
- [PATCH] Query Jumbling for CALL and SET utility statements
- BUG #17668: Query normalization generates multiple queryId:s for calls to the same procedure
- BUG #17665: pg_stat_statements useless with variable number of parameters in IN close
- JUMBLE_SIZE macro in two files
- Differentiate MERGE queries with different structures
- Improve cursor handling in pg_stat_statements
- Query jumbling for prepare statement
- BUG #17474: Segmentation fault from INSERT ( JumbleExpr )
- Jumble Query with COERCE_SQL_SYNTAX
- installcheck fails when compute_query_id=on or pg_stat_statsement is loaded
- Make query ID more portable
- Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?
- Out-of-bounds (src/backend/utils/misc/queryjumble.c)
- pg_stat_statements requires compute_query_id
- Some oversights in query_id calculation
- Problems around compute_query_id
- Improve handling of pg_stat_statements handling of bind "IN" variables
- [survey] New "Stable" QueryId based on normalized query text
- pg_stat_statements query jumbling question
- pg_stat_statements query normalization, and the 'in' operator
- pg_stat_statements cluttered with "DEALLOCATE dbdpg_p*"
- pg_stat_statements normalisation without invasive changes to the parser (was: Next steps on pg_stat_statements normalisation)