{"Entry":{"collection":"func","key":"pg-event-trigger-ddl-commands","name":"pg_event_trigger_ddl_commands","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.5"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"84be106e4b309ee5aebb2687b9b9d8a8d16f0726ea2da537004d0d778c809f7e","derived_content_hash":"45df295ee3c22b2ac7cbf5f038148158a1ff6294fbf6ef5eba879d0ef01d8947","first_version":"9.5","group":"event-triggers","group_label":"Event Trigger Functions","groups":["event-triggers"],"imported_at":"2026-09-27T17:57:29.737939+08:00","last_version":"20","name":"pg_event_trigger_ddl_commands","name_key":"pg_event_trigger_ddl_commands","position":31000,"present_in":["9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"2a4307c287e963b011426b6622fa858588c9dacbf76283d09ffc4758e453231a","repair":"wiki-repair-20261023"},"signature":"pg_event_trigger_ddl_commands () → setof record","signature_count":1,"slug":"pg-event-trigger-ddl-commands","source_rev":"wiki-repair-20261023:ca7b31effcce43c215ed94f13d0f2de20309c250df274fd8a494224a933aa5ac","summary":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-event-trigger-ddl-commands","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-event-trigger-ddl-commands","SourceRevision":"wiki-repair-20261023:ca7b31effcce43c215ed94f13d0f2de20309c250df274fd8a494224a933aa5ac","Facts":{"description":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_zh":"当在一个 ddl_command_end 事件触发器的函数中调用时，pg_event_trigger_ddl_commands 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。pg_event_trigger_ddl_commands 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","description_zh_html":"当在一个 \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e 事件触发器的函数中调用时，\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","doc":{"anchor":"PG-EVENT-TRIGGER-DDL-COMMAND-END-FUNCTIONS","file":"functions-event-triggers.html","slug":"18"},"group":"event-triggers","group_label":"Event Trigger Functions","lang":"en","layout":"table-new","pages":["functions-event-triggers.html"],"prose_only":false,"signatures":[{"description":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_zh":"当在一个 ddl_command_end 事件触发器的函数中调用时，pg_event_trigger_ddl_commands 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。pg_event_trigger_ddl_commands 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","description_zh_html":"当在一个 \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e 事件触发器的函数中调用时，\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e","returns":"setof record","text":"pg_event_trigger_ddl_commands () → setof record","zh_from":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-event-triggers.html","sha256":"39e01f1eeebc1cf29072aab6d31ef4d351bf4010a3c18bd225302c76083bdfca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"PG-EVENT-TRIGGER-DDL-COMMAND-END-FUNCTIONS","file":"functions-event-triggers.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-event-trigger-ddl-commands","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_event_trigger_ddl_commands","Summary":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","BodyHTML":"\u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","SourceRevision":"wiki-repair-20261023:ca7b31effcce43c215ed94f13d0f2de20309c250df274fd8a494224a933aa5ac","ContentHash":"37f6439ad6c404a9281c0e089457643823a7f9c99cf7dc93356b7a98adc04141","Payload":{"description":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","signatures":[{"description":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_zh":"当在一个 ddl_command_end 事件触发器的函数中调用时，pg_event_trigger_ddl_commands 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。pg_event_trigger_ddl_commands 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","description_zh_html":"当在一个 \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e 事件触发器的函数中调用时，\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e","returns":"setof record","text":"pg_event_trigger_ddl_commands () → setof record","zh_from":"same-version-pgdoc"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"955679ee8ff44d3c18294bed860bdcc2dae0bb1a6bd7f59923c18276177cb9a8","Text":"pg_event_trigger_ddl_commands () → setof record","Returns":"setof record","Payload":{"description":"pg_event_trigger_ddl_commands returns a list of DDL commands executed by each user action, when invoked in a function attached to a ddl_command_end event trigger. If called in any other context, an error is raised. pg_event_trigger_ddl_commands returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns a list of DDL commands executed by each user action, when invoked in a function attached to a \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e event trigger. If called in any other context, an error is raised. \u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e returns one row for each base command executed; some commands that are a single SQL sentence may return more than one row. This function returns the following columns:","description_zh":"当在一个 ddl_command_end 事件触发器的函数中调用时，pg_event_trigger_ddl_commands 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。pg_event_trigger_ddl_commands 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","description_zh_html":"当在一个 \u003ccode class=\"literal\"\u003eddl_command_end\u003c/code\u003e 事件触发器的函数中调用时，\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 返回被每一个用户动作执行的 DDL 命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e 为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_ddl_commands\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e","returns":"setof record","text":"pg_event_trigger_ddl_commands () → setof record","zh_from":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
