Planner support functions
Support callbacks attached to functions (prosupport) letting the planner simplify calls, estimate selectivity and rows, and derive index conditions. Introduced in PostgreSQL 12.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 2 commits · +789 / -161 lines
- PostgreSQL 18 · shipped · improved · moderate · 2 commits · +523 / -6 lines
- PostgreSQL 17 · shipped · improved · moderate · 1 commit · +45 / -16 lines
Threads
- information_schema.routine_routine_usage reports planner SUPPORT functions as routine calls
- [PATCH] Add planner support function to two-argument regexp_like()
- BUG #19784: "no relation entry for relid 1" when costing = ANY (<array expr over max(col)>) in a MinMaxAggPath
- [PATCH] Planner support function for generate_subscripts()
- [PATCH] Add row estimate tests for unnest() and integer generate_series()
- Allow a prosupport function to be attached to an aggregate
- pg17: XX000: no relation entry for relid 0
- Fix a reference error for window functions: In the function 'find_window_functions', the deduplication logic should be removed
- [PATCH] Replace COUNT(NULL) with '0'::bigint
- Inline non-SQL SRFs using SupportRequestSimplify
- Segmentation fault in var_is_nonnullable when running query with COUNT() on 42473b3b
- Have the planner convert COUNT(1) / COUNT(not_null_col) to COUNT(*)
- BUG #19037: Planner fails on estimating array length with "no relation entry" error
- Added prosupport function for estimating numeric generate_series rows
- Pg17 Crash in Planning (Arrays + Casting + UDF)
- SupportRequestRows support function for generate_series_timestamptz
- Improve rowcount estimate for UNNEST(column)
- ROWS vs RANGE in release notes for pg 16
- Allow WindowFuncs prosupport function to use more optimal WindowClause options
- Default framing option RANGE adds cost for no gain to some window functions
- selectivity function
- Add planner support function for starts_with()
- planner support functions: handle GROUP BY estimates ?
- SupportRequestSimplify and SQL SRF
- Allowing extensions to supply operator-/function-specific info
- Allowing extensions to find out the OIDs of their member objects
- Refactoring IndexPath representation of index conditions