Re: How to send automatically a NOTIFY when a COMMIT is done ?

From: jboes(at)nexcerpt(dot)com (Jeff Boes)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to send automatically a NOTIFY when a COMMIT is done ?
Date: 2002-01-14 18:39:30
Message-ID: d40a65a1.0201141039.2bd41fa9@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"elisabeth maniez" <emaniez(at)caramail(dot)com> wrote in message news:<a1q39u$n8d$1(at)news(dot)tht(dot)net>...
> When a transaction is commited, I would like to execute "automatically" a
> "NOTIFY ..." call

I'd asked about this sort of thing a few months ago (do a search on
"NOTIFY" at groups.google.com). Your best bet is to write a trigger
in PL/Pgsql that EXECUTEs the NOTIFY. Even there, you won't be able
to do it at COMMIT time, but only at statement execution time. If you
want to do it when you commit, you'll have to do it programmatically
rather than through a trigger.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Elein 2002-01-14 19:32:40 Re: 7.2 Beta timezone woes
Previous Message Jeffrey W. Baker 2002-01-14 18:19:07 7.2b4: faster to dump and reload than to vacuum full