Re: Synchronous LISTEN/NOTIFY?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Synchronous LISTEN/NOTIFY?
Date: 2001-01-05 04:27:10
Message-ID: 29233.978668830@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my> writes:
> Uhoh, since I'm using perl does that mean I have to patch DBI and Pg::DBD?

Couldn't say. I didn't have much trouble setting up a Tcl application
to work smoothly with NOTIFY events, but I've never tried such a thing
in Perl. Any Perl gurus out there who can pontificate about how to
set up an event loop in Perl?

> Would it be viable idea to add a WAIT command/statement for higher level
> access (e.g. "SQL" level access to this feature)?

Strikes me as pretty useless. If you were to PQexec("WAIT foo") then
your application would be totally locked up until and unless a foo
signal gets delivered. You won't be satisfied with that for long.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luis Fernando Fabara M. 2001-01-05 04:28:33 Re: Cobol TO SQL To PostgreSQL
Previous Message GH 2001-01-05 04:26:52 Re: How passwords can be crypted in postgres?