{"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","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"],"signature":"pg_event_trigger_ddl_commands () → setof record","signature_count":1,"slug":"pg-event-trigger-ddl-commands","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","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":"","description_zh_html":"","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":""}],"zh_from":""},"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":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_event_trigger_ddl_commands","Summary":"当在一个ddl_command_end事件触发器的函数中调用时，pg_event_trigger_ddl_commands返回被每一个用户动作执行的DDL命令的列表。如果在其他任何环境中调用这个函数，会发生错误。pg_event_trigger_ddl_commands为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","BodyHTML":"当在一个\u003ccode\u003eddl_command_end\u003c/code\u003e事件触发器的函数中调用时，\u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e返回被每一个用户动作执行的DDL命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：\u003cpre\u003epg_event_trigger_ddl_commands () → setof record\u003c/pre\u003e当在一个\u003ccode\u003eddl_command_end\u003c/code\u003e事件触发器的函数中调用时，\u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e返回被每一个用户动作执行的DDL命令的列表。如果在其他任何环境中调用这个函数，会发生错误。\u003ccode\u003epg_event_trigger_ddl_commands\u003c/code\u003e为每一个被执行的基本命令返回一行，某些由单条 SQL 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","SourceRevision":"ca936764","ContentHash":"a802c16c7a7f3c0e5f84e2640867689a7c3da29541d66030ab1cb3027cb93401","Payload":{"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 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","signatures":[{"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 语句构成的命令可能会返回多于一行。这个函数返回下面的列：","returns":"setof record","text":"pg_event_trigger_ddl_commands () → setof record","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
