Blocking behaviour and other problems

Поиск
Список
Период
Сортировка
От Erik Hofman
Тема Blocking behaviour and other problems
Дата
Msg-id 3A8ACF2D.3DA12DD@ehofman.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Adam Haberlach
Дата:
Сообщение: Re: Something smells in this schema...
Следующее
От: Brook Milligan
Дата:
Сообщение: undocumented parts of SPI