Documentation / Extension Hooks / Query execution
ExecutorFinish_hook
ExecutorFinish_hook
Hook for plugins to get control in ExecutorFinish()
Reading PostgreSQL 18.
Description
Hook for plugins to get control in ExecutorFinish()
- Interface type
- ExecutorFinish_hook_type
- Header
- src/include/executor/executor.h
- Subsystem
- Query execution
- Initial value
- NULL (no hook installed)
C interface
typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);
extern PGDLLIMPORT ExecutorFinish_hook_type ExecutorFinish_hook;Call sites
src/backend/executor/execMain.c:409
Core call context: src/backend/executor/execMain.c:403–417
* ----------------------------------------------------------------
*/
void
ExecutorFinish(QueryDesc *queryDesc)
{
if (ExecutorFinish_hook)
(*ExecutorFinish_hook) (queryDesc);
else
standard_ExecutorFinish(queryDesc);
}
void
standard_ExecutorFinish(QueryDesc *queryDesc)
{
EState *estate;Related entries
Documentation and source
Source build
- Version
- 18
- Build
- REL_18_STABLE
- Source fingerprint
753057e340da8f22e57c9a409ea7a235fd6a46bd
Related entries
ExecutorEnd_hookExecutorEnd_hookExecutorRun_hookExecutorRun_hookExecutorStart_hookExecutorStart_hook
Back to Extension Hooks · Recorded in PostgreSQL 10 through 20; the first sample is not necessarily its introduction.