Hello,

I'm writing a name server switch (nss) module for Irix/PostgreSQL, but i
have some trouble to get it to work.

When i use the blocking functions of PostgreSQL, then there isn't any
response until the nss daemons times out. But right after that i get the
results (which is too late in this situation).

When i use the non blocking functions of PostgreSQL the program executes
until it reaches PQsendQuery() and then returns an error indicating
"There is no connection to the backend."

When i use the result of PQsocket() in a select statemen, it results in
a "error in select: Bad file number" error message (and PostgreSQL
itself shows "PacketSendFragment: write() failed: Broken pipe").

Does anybody have any idea what makes PostgreSQL block?

Regards,

Erik Hofman

Wed, 14 Feb 2001 19:32:13 +0100
Erik Hofman <erik@ehofman.com>
Blocking behaviour and other problems