↑↓ select ↵ open ⌫ change scope Open full search

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

Documentation / Extension Hooks / Logging and function calls

needs_fmgr_hook

needs_fmgr_hook

Hooks for function calls

Reading PostgreSQL 18.

Description

Hooks for function calls

Interface type
needs_fmgr_hook_type
Header
src/include/fmgr.h
Subsystem
Logging and function calls
Initial value
NULL (no hook installed)

C interface

typedef bool (*needs_fmgr_hook_type) (Oid fn_oid);
extern PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook;

Call sites

src/include/fmgr.h:849

Core call context: src/include/fmgr.h:843–851

								FmgrInfo *flinfo, Datum *arg);

extern PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook;
extern PGDLLIMPORT fmgr_hook_type fmgr_hook;

#define FmgrHookIsNeeded(fn_oid)							\
	(!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid))

#endif							/* FMGR_H */

Documentation and source

Source build
Version
18
Build
REL_18_STABLE
Source fingerprint
753057e340da8f22e57c9a409ea7a235fd6a46bd

Related entries

Back to Extension Hooks · Recorded in PostgreSQL 10 through 20; the first sample is not necessarily its introduction.