Skip to content
Snippets Groups Projects
Commit f925c79b authored by Robert Haas's avatar Robert Haas
Browse files

Further documentation tweaks for event triggers.

Per discussion between Dimitri Fontaine, myself, and others.
parent 601e2935
No related branches found
No related tags found
No related merge requests found
...@@ -41,14 +41,20 @@ ...@@ -41,14 +41,20 @@
mechanism does not support these object types. mechanism does not support these object types.
<literal>ddl_command_start</> also occurs just before the execution of a <literal>ddl_command_start</> also occurs just before the execution of a
<literal>SELECT INTO</literal> command, since this is equivalent to <literal>SELECT INTO</literal> command, since this is equivalent to
<literal>CREATE TABLE AS</literal>. <literal>CREATE TABLE AS</literal>. The <literal>ddl_command_end</>
event occurs just after the execution of this same set of commands.
</para> </para>
<para> <para>
The <literal>ddl_command_end</> event occurs just before returning Event triggers (like other functions) cannot be executed in an aborted
control from the execution of a <literal>CREATE</>, <literal>ALTER</>, transaction. Thus, if a DDL command fails with an error, any associated
or <literal>DROP</> command. It shares the same exceptions as <literal>ddl_command_end</> triggers will not be executed. Conversely,
the <literal>ddl_command_start</> event. if a <literal>ddl_command_start</> trigger fails with an error, no
further event triggers will fire, and no attempt will be made to execute
the command itself. Similarly, if a <literal>ddl_command_end</> trigger
fails with an error, the effects of the DDL statement will be rolled
back, just as they would be in any other case where the containing
transaction aborts.
</para> </para>
<para> <para>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment