"David McClellan and Alun Prytherch" <David.McClellan@ateb.com> writes:
> We are using a Postgres database on Linux to service both a webapp and a
> backend process. The backend process is written in GCC-compile standard C,
> and uses libpq to query, insert and update records in the database. It is a
> pharmacy-service app, and also interfaces with DialLogic cards to make phone
> calls. The DialLogic cards support event-callback routines and will
> interrupt the background process with callbacks, even during the process's
> database calls.
Perhaps one of your interrupt routines tried to do something with the
database connection? That certainly won't work safely.
regards, tom lane