Re: Column-level triggers in docs - Mailing list pgsql-docs

From Tom Lane
Subject Re: Column-level triggers in docs
Date
Msg-id 16393.1283092553@sss.pgh.pa.us
Whole thread Raw
In response to Column-level triggers in docs  (Thom Brown <thom@linux.com>)
Responses Re: Column-level triggers in docs  (Thom Brown <thom@linux.com>)
List pgsql-docs
Thom Brown <thom@linux.com> writes:
> I notice that the 9.0 docs page for CREATE TRIGGER doesn't indicate
> column-level syntax in the synopsis:
> http://www.postgresql.org/docs/9.0/static/sql-createtrigger.html

My recollection is that we did it that way deliberately.  The originally
submitted patch tried to explain this as part of the syntax diagram,
but it was (a) confusing and (b) not correct in detail.

> So it would read something like:

> CREATE TRIGGER name { BEFORE | AFTER } { event [ OF column_name [, ...
> ] ] [ OR ... ] }

If you do this then it looks like "OF column_name" can be attached to
all four event types, which is wrong.  So you end up needing just as
much verbal annotation as in the current arrangement.

            regards, tom lane

pgsql-docs by date:

Previous
From: Thom Brown
Date:
Subject: Column-level triggers in docs
Next
From: Thom Brown
Date:
Subject: Re: Column-level triggers in docs