pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: Column-level triggers in docs
Date: Sun, 29 Aug 2010 10:35:53 -0400
Message-ID: <16393.1283092553@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTikh0ta8CbcGVMALqorDS75CrSjVwjtcg4AwndEN@mail.gmail.com>
References: <AANLkTikh0ta8CbcGVMALqorDS75CrSjVwjtcg4AwndEN@mail.gmail.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <16393.1283092553@sss.pgh.pa.us>
Permalink:  ../16393.1283092553@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16393.1283092553@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thom@linux.com
  Subject: Re: Column-level triggers in docs
  In-Reply-To: <16393.1283092553@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox