Re: Notify rule - Mailing list pgsql-general

From Tom Lane
Subject Re: Notify rule
Date
Msg-id 29838.1298388725@sss.pgh.pa.us
Whole thread Raw
In response to Notify rule  (ivan_14_32 <ivan_14_32@mail.ru>)
List pgsql-general
ivan_14_32 <ivan_14_32@mail.ru> writes:
> Q: How can I send tuple id (integer primary key) via notify using Rule?

You can't --- NOTIFY doesn't take variables in its parameters.
(That's a general property of utility commands, not just NOTIFY.)

Use the pg_notify() function, instead.

            regards, tom lane

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: why is there no TRIGGER ON SELECT ?
Next
From: Reid Thompson
Date:
Subject: work_mem = 900MB but Sort Method: external merge Disk: 304008kB