Re: berkley sockets

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: J S B <jsbali(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: berkley sockets
Date: 2006-09-15 14:49:24
Message-ID: 450ABD74.6020105@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

J S B wrote:
> What exactly is this LISTEN/NOTIFY?
> Is it some function in socket programing or some part of postgres?
>
> ~Jas
>
Listen/Notify is a means of letting a connected postgresql client know a
insert or other event has occurred.
It won't help if you need to send a command/message to some other tcp/ip
daemon.

You set up a rule to use Notify:

create rule InsertDetect as on INSERT to notify_test do notify recinsert

Then on the client side (if the client has libpq listen capability) you
listen for the incoming notification messages and react to them
accordingly.

--
Tony Caduto
AM Software Design
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql
Your best bet for Postgresql Administration

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brandon Aiken 2006-09-15 14:52:05 Re: Installation with sources or with packages
Previous Message Tom Lane 2006-09-15 14:47:19 Re: Postgresql 7.4 migration to (partially) new disks