From: Richard Huxton <dev@archonet.com>
To: ramachandra.bhaskaram@wipro.com
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL NOTIFY Help] sending NOTIFY to the external program
Date: Wed, 03 Jan 2007 14:09:01 +0000
Message-ID: <459BB8FD.8030207@archonet.com> (raw)
In-Reply-To: <47230CE166B64744B0120173E4C2161E0103E69F@BLR-EC-MBX01.wipro.com>
References: <47230CE166B64744B0120173E4C2161E0103E69F@BLR-EC-MBX01.wipro.com>
ramachandra.bhaskaram@wipro.com wrote:
> Hi Richard Huxton,
>
> Thank you for your kind response.
>
> Is there not any other way other than record the pkey in a
> "process_these" table and have the application check there. We want
> to minimise the database transactions to improve the DB performance.
>
> Can we send the exact data which has been changed using
> db-notify to the application? So that, the application can continue
> processing the data using the Notify message from the DB.
Not via your database connection.
With one of the untrusted languages (C, pl/perlu pl/pythonu etc) you
could do anything you could make a separate connection / write to a file
etc.
Does your application need to know *immediately* that a change in the
database has occurred?
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, ramachandra.bhaskaram@wipro.com
Subject: Re: [SQL NOTIFY Help] sending NOTIFY to the external program
In-Reply-To: <459BB8FD.8030207@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox