{"Entry":{"collection":"hook","key":"executorfinish_hook","name":"ExecutorFinish_hook","aliases":[],"metadata":{"aliases":[],"category":"Query execution","content_hash":"e2485adfa5b4da24a2597e618a3ee9f81bb2a655f3d37f8d42704381138d3b24","derived_content_hash":"a319e29e7715d00ccb88147005bcec1b6b6fc1b48d48badb6d755308bb99198c","imported_at":"2026-09-27T17:57:58.862448+08:00","name":"ExecutorFinish_hook","name_zh":"ExecutorFinish_hook","repair_provenance":{"original_source_revision":"","receipt_sha256":"2a6e1c62aff4ef47616133b4ac4199337d9473fcf1fb3fb194976253df61d387","repair":"wiki-repair-20261023"},"slug":"executorfinish_hook","source_rev":"wiki-repair-20261023:391162497458d84bb4e4a7ec40ab9269c8105746e40d5b2d64094587dbdb522f","summary":"Hook for plugins to get control in ExecutorFinish()"}},"Definition":{"Collection":"hook","Key":"executorfinish_hook","SourceDatabase":"center","Version":"18","SourceTable":"hook","SourceKey":"executorfinish_hook","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","Facts":{"description":["Hook for plugins to get control in ExecutorFinish()"],"description_zh":"供插件在 ExecutorFinish() 中接管处理的钩子。","description_zh_html":"\u003cp\u003e供插件在 ExecutorFinish() 中接管处理的钩子。\u003c/p\u003e\u003cp\u003e以下中文为本站依据所列 PostgreSQL 源码注释编译的说明。\u003c/p\u003e\u003ch3\u003e接口声明\u003c/h3\u003e\u003cpre\u003etypedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);\nextern PGDLLIMPORT ExecutorFinish_hook_type ExecutorFinish_hook;\u003c/pre\u003e\u003ch3\u003e调用位置\u003c/h3\u003e\u003cul\u003e\u003cli\u003e\u003ccode\u003esrc/backend/executor/execMain.c:409\u003c/code\u003e\u003c/li\u003e\u003c/ul\u003e\u003ch3\u003e核心调用上下文：src/backend/executor/execMain.c:403–417\u003c/h3\u003e\u003cpre\u003e * ----------------------------------------------------------------\n */\nvoid\nExecutorFinish(QueryDesc *queryDesc)\n{\n\tif (ExecutorFinish_hook)\n\t\t(*ExecutorFinish_hook) (queryDesc);\n\telse\n\t\tstandard_ExecutorFinish(queryDesc);\n}\n\nvoid\nstandard_ExecutorFinish(QueryDesc *queryDesc)\n{\n\tEState\t   *estate;\u003c/pre\u003e","facts":[{"label":"Interface type","value":"ExecutorFinish_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:409"],"title":"Call sites"},{"code":" * ----------------------------------------------------------------\n */\nvoid\nExecutorFinish(QueryDesc *queryDesc)\n{\n\tif (ExecutorFinish_hook)\n\t\t(*ExecutorFinish_hook) (queryDesc);\n\telse\n\t\tstandard_ExecutorFinish(queryDesc);\n}\n\nvoid\nstandard_ExecutorFinish(QueryDesc *queryDesc)\n{\n\tEState\t   *estate;","paragraphs":[],"title":"Core call context: src/backend/executor/execMain.c:403–417"}],"signature":"typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);\nextern PGDLLIMPORT ExecutorFinish_hook_type ExecutorFinish_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#L85"},{"label":"Core definition","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L70"},{"label":"Call sites","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L409"}],"translation_provenance":{"inputs":[{"label":"Interface declaration","path":"src/include/executor/executor.h","sha256":"65710b17bb91a8fe6367654bb27b67ef7a7c238f79ba46248f92a3b8302cd4bb","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/include/executor/executor.h#L85"},{"label":"Core definition","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L70"},{"label":"Call sites","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L409"}],"kind":"authored-source-translation","locale":"zh-Hans","source_revision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","translated_source_sha256":"197b6bb993a2a75c810e1954e97dfd07360141c8fd346611fbb245585432dbde","version":"18"},"zh_from":"authored-source-translation"},"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#L85"},{"label":"Core definition","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L70"},{"label":"Call sites","path":"src/backend/executor/execMain.c","sha256":"a0407447270840acd8a9902c444693d97c765fd8e056dbadc66d36a3327fb0ef","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/executor/execMain.c#L409"}]},"MeasuredEvidence":{}},"Text":{"Collection":"hook","Key":"executorfinish_hook","SourceDatabase":"center","Version":"18","Locale":"en","Title":"ExecutorFinish_hook","Summary":"Hook for plugins to get control in ExecutorFinish()","BodyHTML":"\u003cp\u003eHook for plugins to get control in ExecutorFinish()\u003c/p\u003e","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","ContentHash":"36847d02f3adf4b1054266fc42509340e8df20a783dd9c1e01db8289a63ad212","Payload":{"description":["Hook for plugins to get control in ExecutorFinish()"],"related":[{"label":"The Executor","url":"/docs/18/executor.html"}],"sections":[{"paragraphs":["src/backend/executor/execMain.c:409"],"title":"Call sites"},{"code":" * ----------------------------------------------------------------\n */\nvoid\nExecutorFinish(QueryDesc *queryDesc)\n{\n\tif (ExecutorFinish_hook)\n\t\t(*ExecutorFinish_hook) (queryDesc);\n\telse\n\t\tstandard_ExecutorFinish(queryDesc);\n}\n\nvoid\nstandard_ExecutorFinish(QueryDesc *queryDesc)\n{\n\tEState\t   *estate;","paragraphs":[],"title":"Core call context: src/backend/executor/execMain.c:403–417"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
