Blocking behaviour and other problems

From: Erik Hofman <erik(at)ehofman(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Blocking behaviour and other problems
Date: 2001-02-14 18:32:13
Message-ID: 3A8ACF2D.3DA12DD@ehofman.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-02-14 18:33:13 Re: possible to create CVS branch for proposed patch?
Previous Message Bruce Momjian 2001-02-14 17:47:46 Re: Re: Recovery of PGSQL after system crash failing!!!