↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Hooks

planner_hook

Hook for plugins to get control in planner()

Reading PG 18·Select a recorded version

Interface type
planner_hook_type
Header
src/include/optimizer/planner.h
Subsystem
Query planning
Initial value
NULL (no hook installed)
signature
typedef PlannedStmt *(*planner_hook_type) (Query *parse, const char *query_string, int cursorOptions, ParamListInfo boundParams); extern PGDLLIMPORT planner_hook_type planner_hook;

Definition PG 18

Hook for plugins to get control in planner()

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 753057e340da8f22e57c9a409ea7a235fd6a46bd

Text language: en · 753057e340da8f22e57c9a409ea7a235fd6a46bd