Re: message type 0x50

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alessandro GARDICH <gremlin(at)gremlin(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: message type 0x50
Date: 2003-09-10 17:25:51
Message-ID: 8534.1063214751@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alessandro GARDICH <gremlin(at)gremlin(dot)it> writes:
> with setittimer and SIGALRM i do an explicit COMMIT every 10 seconds,
> update loop have a random delay from 0 to 500 msec using usleep().
> I have problems using SIGALRM and libpq (libpqxx exactly), does libpq
> use select or other signal ???

Are you trying to execute database operations from inside the SIGALRM
signal handler? Perhaps these operations are interrupting something at
the main level? libpq is not re-entrant for operations on a single
connection.

> P.S. on the table there is a trigger that execute an NOTIFY every
> update, but only one is received also if many updates happen between
> commits ... why ???

Because that's the way NOTIFY works.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Holger Marzen 2003-09-10 17:40:13 Re: Find overlapping time intervals, how?
Previous Message Doug McNaught 2003-09-10 17:11:33 Re: Picture with Postgres and Delphi