Re: Asynchronous interface help?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Haberlach <adam(at)newsnipple(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Asynchronous interface help?
Date: 2001-01-03 00:14:48
Message-ID: 14511.978480888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Adam Haberlach <adam(at)newsnipple(dot)com> writes:
> This always seems to time out. Is there some mode that I need to put
> the backend into in order to make the socket valid?

It seems like there should be a loop around the
select/consumeinput/notifies sequence, but perhaps that's provided
outside the pqwait() function? As it stands, you're assuming that
the first data delivered will be the notify you want.

Another possible problem is if you are expecting this to fire within
a transaction block. Notifications are only delivered outside of
transactions.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Luc Bouchard 2001-01-03 00:25:00 Re: DBD::Pg
Previous Message Cedar Cox 2001-01-02 23:20:57 plpgsql help - nested loops