Re: Regarding NOTIFY

From: Chris Travers <chris(dot)travers(at)gmail(dot)com>
To: bret_stern(at)machinemanagement(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Regarding NOTIFY
Date: 2012-03-09 23:35:40
Message-ID: CAKt_Zfu2Py8AKqQ-MqqhXE9v+y9uRdsuHeXRgwxqO4E=47HOVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Mar 9, 2012 at 8:53 AM, Bret Stern
<bret_stern(at)machinemanagement(dot)com> wrote:
> We have a concrete batching application composed of two parts.
> 1. The Monitor.
> The Monitor cycles every 60 seconds, and looks into a Postgresql table
> for jobs to run. Primarily these jobs update Postgresql tables with
> data from external applications.
>
> 2. The Client.
> The client schedules orders etc.
>
> When a new product or customer is added to the Accounting or Batching
> Controller (both external applications; and databases) the Client user
> clicks a button and adds a job to run on the Monitor.
>
> Is it possible use the NOTIFY event to serve more like an interrupt,
> and trigger the Monitor to run immediately.

Yes. Note that Notify fires when the transaction is committed, and
you have to poll the client library to see if one was received.

>
> Can it be used with VB?
> or
> Should I use LibPQ?

I believe the .net provider for PostgreSQL supports this. I know
libpq does. Maybe others here know better than I.

Best Wishes
Chris Travers

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kiriakos Georgiou 2012-03-09 23:48:21 Re: Regarding NOTIFY
Previous Message Francisco Figueiredo Jr. 2012-03-09 22:21:56 Re: 9.1 causing "out of shared memory" error and higher serialization conflicts