Re: Event Triggers: adding information

From: Thom Brown <thom(at)linux(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Event Triggers: adding information
Date: 2013-01-22 14:47:28
Message-ID: CAA-aLv4QKJvLZvpyWi2ORpxeY01kvwe+W3gy2k6L6rFEvibQ=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 22 January 2013 14:45, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> wrote:
> Thom Brown <thom(at)linux(dot)com> writes:
>> Ah, in that case, the docs are wrong:
>> http://www.postgresql.org/docs/devel/static/sql-createeventtrigger.html
>
> Oh. It's missing the comma and applying the AND at the wrong level,
> here's a fix:
>
> diff --git a/doc/src/sgml/ref/create_event_trigger.sgml b/doc/src/sgml/ref/create_event_trigger.sgml
> index 040df11..3088ffa 100644
> --- a/doc/src/sgml/ref/create_event_trigger.sgml
> +++ b/doc/src/sgml/ref/create_event_trigger.sgml
> @@ -23,7 +23,7 @@ PostgreSQL documentation
> <synopsis>
> CREATE EVENT TRIGGER <replaceable class="PARAMETER">name</replaceable>
> ON <replaceable class="PARAMETER">event</replaceable>
> - [ WHEN <replaceable class="PARAMETER">filter_variable</replaceable> IN (filter_value [ AND ... ] ) ]
> + [ WHEN <replaceable class="PARAMETER">filter_variable</replaceable> IN (filter_value [, ... ]) [ AND ... ] ]
> EXECUTE PROCEDURE <replaceable class="PARAMETER">function_name</replaceable>()
> </synopsis>
> </refsynopsisdiv>

Okay, that makes sense now. :)

--
Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-01-22 14:51:38 Re: Re: Prepared statements fail after schema changes with surprising error
Previous Message Dimitri Fontaine 2013-01-22 14:45:40 Re: Event Triggers: adding information