{"Entry":{"collection":"hook","key":"executorend_hook","name":"ExecutorEnd_hook","aliases":[],"metadata":{"aliases":[],"category":"Query execution","content_hash":"c000cd9b1abd39e15ed8fb272cb4a8e81040e2eacfb4abb73c5d25396506c482","imported_at":"2026-09-27T17:57:58.860885+08:00","name":"ExecutorEnd_hook","name_zh":"ExecutorEnd_hook","slug":"executorend_hook","summary":"Hook for plugins to get control in ExecutorEnd()"}},"Definition":{"Collection":"hook","Key":"executorend_hook","SourceDatabase":"center","Version":"18","SourceTable":"hook","SourceKey":"executorend_hook","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","Facts":{"description":["Hook for plugins to get control in ExecutorEnd()"],"facts":[{"label":"Interface type","value":"ExecutorEnd_hook_type"},{"label":"Header","value":"src/include/executor/executor.h"},{"label":"Subsystem","value":"Query execution"},{"label":"Initial value","value":"NULL (no hook installed)"}],"related":[{"label":"The Executor","url":"/docs/18/executor.html"}],"release":{"channel":"stable","label":"18","major":"18","ref":"REL_18_STABLE","revision":"753057e340da8f22e57c9a409ea7a235fd6a46bd"},"sections":[{"paragraphs":["src/backend/executor/execMain.c:469"],"title":"Call sites"},{"code":" * ----------------------------------------------------------------\n */\nvoid\nExecutorEnd(QueryDesc *queryDesc)\n{\n\tif (ExecutorEnd_hook)\n\t\t(*ExecutorEnd_hook) (queryDesc);\n\telse\n\t\tstandard_ExecutorEnd(queryDesc);\n}\n\nvoid\nstandard_ExecutorEnd(QueryDesc *queryDesc)\n{\n\tEState\t   *estate;","paragraphs":[],"title":"Core call context: src/backend/executor/execMain.c:463–477"}],"signature":"typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);\nextern PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook;","sources":[{"label":"Interface declaration","path":"src/include/executor/executor.h","sha256":"65710b17bb91a8fe6367654bb27b67ef7a7c238f79ba46248f92a3b8302cd4bb","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/include/executor/executor.h#L89"},{"label":"Core definition","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L71"},{"label":"Call sites","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L469"}]},"ManualEvidence":{"release":{"channel":"stable","label":"18","major":"18","ref":"REL_18_STABLE","revision":"753057e340da8f22e57c9a409ea7a235fd6a46bd"},"sources":[{"label":"Interface declaration","path":"src/include/executor/executor.h","sha256":"65710b17bb91a8fe6367654bb27b67ef7a7c238f79ba46248f92a3b8302cd4bb","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/include/executor/executor.h#L89"},{"label":"Core definition","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L71"},{"label":"Call sites","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L469"}]},"MeasuredEvidence":{}},"Text":{"Collection":"hook","Key":"executorend_hook","SourceDatabase":"center","Version":"18","Locale":"en","Title":"ExecutorEnd_hook","Summary":"Hook for plugins to get control in ExecutorEnd()","BodyHTML":"\u003cp\u003eHook for plugins to get control in ExecutorEnd()\u003c/p\u003e","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","ContentHash":"6c817cb52a9a9bc345229623a5da79b33ef36edfd88117fcb0edbb589f34f225","Payload":{"description":["Hook for plugins to get control in ExecutorEnd()"],"related":[{"label":"The Executor","url":"/docs/18/executor.html"}],"sections":[{"paragraphs":["src/backend/executor/execMain.c:469"],"title":"Call sites"},{"code":" * ----------------------------------------------------------------\n */\nvoid\nExecutorEnd(QueryDesc *queryDesc)\n{\n\tif (ExecutorEnd_hook)\n\t\t(*ExecutorEnd_hook) (queryDesc);\n\telse\n\t\tstandard_ExecutorEnd(queryDesc);\n}\n\nvoid\nstandard_ExecutorEnd(QueryDesc *queryDesc)\n{\n\tEState\t   *estate;","paragraphs":[],"title":"Core call context: src/backend/executor/execMain.c:463–477"}]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
