Skip site navigation (1) Skip section navigation (2)

Re: Column-level triggers in docs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Column-level triggers in docs
Date: 2010-08-29 14:35:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Thom Brown <thom(at)linux(dot)com> writes:
> I notice that the 9.0 docs page for CREATE TRIGGER doesn't indicate
> column-level syntax in the synopsis:

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

In response to


pgsql-docs by date

Next:From: Thom BrownDate: 2010-08-29 14:42:04
Subject: Re: Column-level triggers in docs
Previous:From: Thom BrownDate: 2010-08-29 13:29:23
Subject: Column-level triggers in docs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group