Re: Notify rule

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ivan_14_32 <ivan_14_32(at)mail(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Notify rule
Date: 2011-02-22 15:32:05
Message-ID: 29838.1298388725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ivan_14_32 <ivan_14_32(at)mail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Reid Thompson 2011-02-22 16:35:22 work_mem = 900MB but Sort Method: external merge Disk: 304008kB
Previous Message Thomas Kellerer 2011-02-22 14:55:09 Re: why is there no TRIGGER ON SELECT ?