Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index39
build_simple_rel_hookHook for plugins to get control in build_simple_rel()
build_simple_rel_hook
Query planning
typedef void (*build_simple_rel_hook_type) (PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)…
check_password_hookHook to check passwords in CreateRole() and AlterRole()
check_password_hook
Authentication and connections
typedef void (*check_password_hook_type) (const char *username, const char *shadow_…
ClientAuthentication_hookHook for plugins to get control in ClientAuthentication()
ClientAuthentication_hook
Authentication and connections
typedef void (*ClientAuthentication_hook_type) (Port *, int);
extern PGDLLI…
create_upper_paths_hookHook for plugins to get control when grouping_planner() plans upper rels
create_upper_paths_hook
Query planning
typedef void (*create_upper_paths_hook_type) (PlannerInfo *root, UpperRelation…
emit_log_hookHook for intercepting messages before they are sent to the server log
emit_log_hook
Logging and function calls
typedef void (*emit_log_hook_type) (ErrorData *edata);
extern PGDLLIMPORT emit_…
ExecutorCheckPerms_hookHook for plugins to get control in ExecCheckPermissions()
ExecutorCheckPerms_hook
Permissions and object access
Hook for plugins to get control in ExecCheckRTPerms()
typedef bool (*ExecutorC…
ExecutorEnd_hookHook for plugins to get control in ExecutorEnd()
ExecutorEnd_hook
Query execution
typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);
extern PGDLLIMPORT ExecutorEnd_hook_type Execu…
ExecutorFinish_hookHook for plugins to get control in ExecutorFinish()
ExecutorFinish_hook
Query execution
typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);
extern PGDLLIMPORT ExecutorFinish_hoo…
ExecutorRun_hookHook for plugins to get control in ExecutorRun()
ExecutorRun_hook
Query execution
typedef void (*ExecutorRun_hook_type) (QueryDesc *queryDesc, ScanDirection direction, uint64 count, bool exe…
ExecutorStart_hookHook for plugins to get control in ExecutorStart()
ExecutorStart_hook
Query execution
typedef void (*ExecutorStart_hook_type) (QueryDesc *queryDesc, int eflags);
extern PGDLLIMPORT ExecutorS…
explain_get_index_name_hookHook for plugins to get control in explain_get_index_name()
explain_get_index_name_hook
EXPLAIN
typedef const char *(*explain_get_index_name_hook_type) (Oid indexId);
extern PGDLLIMPORT expl…
explain_per_node_hookHook for EXPLAIN plugins to print extra fields on individual plan nodes
explain_per_node_hook
EXPLAIN
typedef void (*explain_per_node_hook_type) (PlanState *planstate, List *ancestors, const…
explain_per_plan_hookHook for EXPLAIN plugins to print extra information for each plan
explain_per_plan_hook
EXPLAIN
typedef void (*explain_per_plan_hook_type) (PlannedStmt *plannedstmt, IntoClause *into, struct…
explain_validate_options_hookHook to perform additional EXPLAIN options validation
explain_validate_options_hook
EXPLAIN
typedef void (*explain_validate_options_hook_type) (struct ExplainState *es, List *options, ParseS…
ExplainOneQuery_hookHook for plugins to get control in ExplainOneQuery()
ExplainOneQuery_hook
EXPLAIN
typedef void (*ExplainOneQuery_hook_type) (Query *query, int cursorOptions, IntoClause *into, ExplainState *…
fmgr_hookfunction manager hook
fmgr_hook
Logging and function calls
typedef void (*fmgr_hook_type) (FmgrHookEventType event, FmgrInfo *flinfo, Datum *arg);
extern PGDLLIMPORT fmgr_hook_type fmgr_hook…
get_attavgwidth_hookHook for plugins to get control in get_attavgwidth()
get_attavgwidth_hook
Statistics and estimation
typedef int32 (*get_attavgwidth_hook_type) (Oid relid, AttrNumber attnum);
extern PGDLLIMP…
get_index_stats_hookcore extension hook declared in src/include/utils/selfuncs.h. The exact interface and call sites are recorded below.
get_index_stats_hook
Statistics and estimation
typedef bool (*get_index_s…
get_relation_info_hookHook for plugins to get control in get_relation_info()
get_relation_info_hook
Query planning
typedef void (*get_relation_info_hook_type) (PlannerInfo *root, Oid relationObjectId, bool inhpar…
get_relation_stats_hookHooks for plugins to get control when we ask for stats
get_relation_stats_hook
Statistics and estimation
typedef bool (*get_relation_stats_hook_type) (PlannerInfo *root, RangeTblEntry *rte, …
join_path_setup_hookHooks for plugins to get control in set_rel_pathlist()
join_path_setup_hook
Query planning
typedef void (*join_path_setup_hook_type) (PlannerInfo *root, RelOptInfo *joinrel, RelOptInfo *oute…
join_search_hookHook for plugins to replace standard_join_search()
join_search_hook
Query planning
typedef RelOptInfo *(*join_search_hook_type) (PlannerInfo *root, int levels_needed, List *initial_rels);
ex…
joinrel_setup_hookHook for plugins to get control during joinrel setup
joinrel_setup_hook
Query planning
typedef void (*joinrel_setup_hook_type) (PlannerInfo *root, RelOptInfo *joinrel, RelOptInfo *outer_rel,…
ldap_password_hookhook type for password manglers
ldap_password_hook
Authentication and connections
typedef char *(*auth_password_hook_typ) (char *input);
extern PGDLLIMPORT auth_password_hook_typ ldap_passwo…
needs_fmgr_hookHooks for function calls
needs_fmgr_hook
Logging and function calls
typedef bool (*needs_fmgr_hook_type) (Oid fn_oid);
extern PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook;
Interface type…
object_access_hookPlugin provides a hook function matching one or both of these signatures.
object_access_hook
Permissions and object access
Plugin provides a hook function matching this signature.
typedef vo…
object_access_hook_strcore extension hook declared in src/include/catalog/objectaccess.h. The exact interface and call sites are recorded below.
object_access_hook_str
Permissions and object access
typedef void (…
openssl_tls_init_hookcore extension hook declared in src/include/libpq/libpq-be.h. The exact interface and call sites are recorded below.
openssl_tls_init_hook
Authentication and connections
Call init hook (usua…
planner_hookHook for plugins to get control in planner()
planner_hook
Query planning
typedef PlannedStmt *(*planner_hook_type) (Query *parse, int cursorOptions, ParamListInfo boundParams);
extern PGDLLI…
planner_setup_hookHook for plugins to get control after PlannerGlobal is initialized
planner_setup_hook
Query planning
typedef void (*planner_setup_hook_type) (PlannerGlobal *glob, Query *parse, const char *q…
planner_shutdown_hookHook for plugins to get control before PlannerGlobal is discarded
planner_shutdown_hook
Query planning
typedef void (*planner_shutdown_hook_type) (PlannerGlobal *glob, Query *parse, const ch…
post_parse_analyze_hookHook for plugins to get control at end of parse analysis
post_parse_analyze_hook
Parsing and utility commands
typedef void (*post_parse_analyze_hook_type) (ParseState *pstate, Query *query);…
ProcessUtility_hookHook for plugins to get control in ProcessUtility()
ProcessUtility_hook
Parsing and utility commands
typedef void (*ProcessUtility_hook_type) (PlannedStmt *pstmt, const char *queryString, Pr…
row_security_policy_hook_permissivehooks to allow extensions to add their own security policies row_security_policy_hook_permissive can be used to add policies which are combined with the other permissive policies, using OR. …
row_security_policy_hook_restrictivecore extension hook declared in src/include/rewrite/rowsecurity.h. The exact interface and call sites are recorded below.
row_security_policy_hook_restrictive
Permissions and object access
t…
set_join_pathlist_hookHook for plugins to get control in add_paths_to_joinrel()
set_join_pathlist_hook
Query planning
typedef void (*set_join_pathlist_hook_type) (PlannerInfo *root, RelOptInfo *joinrel, RelOptInf…
set_rel_pathlist_hookHook for plugins to get control in set_rel_pathlist()
set_rel_pathlist_hook
Query planning
typedef void (*set_rel_pathlist_hook_type) (PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTbl…
shmem_request_hookcore extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below.
shmem_request_hook
Startup and shared memory
typedef void (*shmem_request_hook…
shmem_startup_hookNow give loadable modules a chance to set up their shmem allocations
shmem_startup_hook
Startup and shared memory
typedef void (*shmem_startup_hook_type) (void);
extern PGDLLIMPORT shmem_sta…
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
Searching every version by default. Manual pages are indexed for PostgreSQL 10–20; the reference library and extension catalogue are not version-bound.
all: every version pg17: one version ex: extensions only ↑↓ select ↵ open