↑↓ select ↵ open ⌫ change scope Open full search

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

Documentation / Extension Hooks / Query execution

ExecutorEnd_hook

ExecutorEnd_hook

Hook for plugins to get control in ExecutorEnd()

Reading PostgreSQL 18.

Description

Hook for plugins to get control in ExecutorEnd()

Interface type
ExecutorEnd_hook_type
Header
src/include/executor/executor.h
Subsystem
Query execution
Initial value
NULL (no hook installed)

C interface

typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);
extern PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook;

Call sites

src/backend/executor/execMain.c:469

Core call context: src/backend/executor/execMain.c:463–477

 * ----------------------------------------------------------------
 */
void
ExecutorEnd(QueryDesc *queryDesc)
{
	if (ExecutorEnd_hook)
		(*ExecutorEnd_hook) (queryDesc);
	else
		standard_ExecutorEnd(queryDesc);
}

void
standard_ExecutorEnd(QueryDesc *queryDesc)
{
	EState	   *estate;

Related entries

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.