diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-27 18:38:33 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-27 18:39:53 -0300 |
commit | 3f190f67eb45ae61d696fbce8ab48d246a12f709 (patch) | |
tree | 6f412618fbfc2a4ac704f86d050c75404fd7e916 /doc/src | |
parent | bda76c1c8cfb1d11751ba6be88f0242850481733 (diff) | |
download | postgresql-3f190f67eb45ae61d696fbce8ab48d246a12f709.tar.gz postgresql-3f190f67eb45ae61d696fbce8ab48d246a12f709.zip |
Fix table_rewrite event trigger for ALTER TYPE/SET DATA TYPE CASCADE
When a composite type being used in a typed table is modified by way
of ALTER TYPE, a table rewrite occurs appearing to come from ALTER TYPE.
The existing event_trigger.c code was unable to cope with that
and raised a spurious error. The fix is just to accept that command
tag for the event, and document this properly.
Noted while fooling with deparsing of DDL commands. This appears to be
an oversight in commit 618c9430a.
Thanks to Mark Wong for documentation wording help.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/event-trigger.sgml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml index 04353eac3d7..f151eb73754 100644 --- a/doc/src/sgml/event-trigger.sgml +++ b/doc/src/sgml/event-trigger.sgml @@ -68,12 +68,11 @@ <para> The <literal>table_rewrite</> event occurs just before a table is - rewritten by the command <literal>ALTER TABLE</literal>. While other + rewritten by some actions of the commands <literal>ALTER TABLE</> and + <literal>ALTER TYPE</>. While other control statements are available to rewrite a table, like <literal>CLUSTER</literal> and <literal>VACUUM</literal>, - the <literal>table_rewrite</> event is currently only triggered by - the <literal>ALTER TABLE</literal> command, and only when that command - attempts to rewrite the table. + the <literal>table_rewrite</> event is not triggered by them. </para> <para> @@ -318,7 +317,7 @@ <entry align="center"><literal>X</literal></entry> <entry align="center"><literal>X</literal></entry> <entry align="center"><literal>-</literal></entry> - <entry align="center"><literal>-</literal></entry> + <entry align="center"><literal>X</literal></entry> <entry align="center"></entry> </row> <row> |