Re: Event Triggers: adding information - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Event Triggers: adding information
Date
Msg-id m2ip6pi8dn.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Event Triggers: adding information  (Thom Brown <thom@linux.com>)
Responses Re: Event Triggers: adding information
List pgsql-hackers
Thom Brown <thom@linux.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 ... ] ]
EXECUTEPROCEDURE <replaceable class="PARAMETER">function_name</replaceable>()</synopsis> </refsynopsisdiv>
 

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: CF3+4 (was Re: Parallel query execution)
Next
From: Thom Brown
Date:
Subject: Re: Event Triggers: adding information