Re: Listen and Notify

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Reichstadt <lxr(at)mac(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Listen and Notify
Date: 2012-04-30 15:17:57
Message-ID: 8224.1335799077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alexander Reichstadt <lxr(at)mac(dot)com> writes:
> But what I don't fully understand is how to do this with PQnotifies. Following the docu I get no notifications even though I subscribe to them after successfully connecting to the server the same way I do using terminal.

Maybe you forgot PQconsumeInput? There's a working example in the
source tree:

http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/test/examples/testlibpq2.c

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message leaf_yxj 2012-04-30 15:23:01 Re: how to set up automatically startup database when the server boot or reboot.
Previous Message Merlin Moncure 2012-04-30 15:12:26 Re: Listen and Notify