Blocking behaviour and other problems - Mailing list pgsql-hackers

From Erik Hofman
Subject Blocking behaviour and other problems
Date
Msg-id 3A8ACF2D.3DA12DD@ehofman.com
Whole thread Raw
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Adam Haberlach
Date:
Subject: Re: Something smells in this schema...
Next
From: Brook Milligan
Date:
Subject: undocumented parts of SPI