Thread: [HACKERS] Contrib: pqasyncnotifier.c -- a shell command client for LISTEN

[HACKERS] Contrib: pqasyncnotifier.c -- a shell command client for LISTEN

From
Nico Williams
Date:
psql(1) does not output notifications asynchronously, as it does not
check for them when idle.  This makes it difficult to script handling of
NOTIFYs.

Attached is pqasyncnotifier.c, a simple command that allows one to
handle NOTIFYs asynchronously.

Cheers,

Nico
-- 



Re: [HACKERS] Contrib: pqasyncnotifier.c -- a shell command clientfor LISTEN

From
Marko Tiikkaja
Date:
On Tue, Jan 24, 2017 at 12:40 AM, Nico Williams <nico@cryptonector.com> wrote:
psql(1) does not output notifications asynchronously, as it does not
check for them when idle.  This makes it difficult to script handling of
NOTIFYs.

Attached is pqasyncnotifier.c, a simple command that allows one to
handle NOTIFYs asynchronously.

Did you forget the attachment?


.m

Re: [HACKERS] Contrib: pqasyncnotifier.c -- a shell command clientfor LISTEN

From
Nico Williams
Date:
On Tue, Jan 24, 2017 at 12:48:49AM +0100, Marko Tiikkaja wrote:
> Did you forget the attachment?

I guess I must have.  Attached this time.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

Re: [HACKERS] Contrib: pqasyncnotifier.c -- a shell command clientfor LISTEN

From
Nico Williams
Date:
I should also note that this is on github at
https://github.com/twosigma/postgresql-contrib

Nico
--