↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Hooks

get_relation_stats_hook

Hooks for plugins to get control when we ask for stats

Reading PG 18·Select a recorded version

Interface type
get_relation_stats_hook_type
Header
src/include/utils/selfuncs.h
Subsystem
Statistics and estimation
Initial value
NULL (no hook installed)
signature
typedef bool (*get_relation_stats_hook_type) (PlannerInfo *root, RangeTblEntry *rte, AttrNumber attnum, VariableStatData *vardata); extern PGDLLIMPORT get_relation_stats_hook_type get_relation_stats_hook;

Definition PG 18

Hooks for plugins to get control when we ask for stats

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 753057e340da8f22e57c9a409ea7a235fd6a46bd

Text language: en · 753057e340da8f22e57c9a409ea7a235fd6a46bd