Re: Accessing a database via AJAX scripts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Accessing a database via AJAX scripts
Дата
Msg-id 27283.1281295452@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Accessing a database via AJAX scripts  (Glen Eustace <geustace@godzone.net.nz>)
Ответы Re: Accessing a database via AJAX scripts  (Glen Eustace <geustace@godzone.net.nz>)
Re: Accessing a database via AJAX scripts - solved  (Glen Eustace <geustace@godzone.net.nz>)
Список pgsql-general
Glen Eustace <geustace@godzone.net.nz> writes:
> Unfortunately your comments don't shed any light on the error I am getting;
> "could not receive data from server: Bad file descriptor".

> This suggests to me that I might have lost the connection in my forked
> perl process to the back-end.  Can you confirm or deny ?

Not on that much evidence; but trying to pass a libpq connection across
a fork is usually risky.  The trouble is that both parent and child
processes now hold copies of the open socket connection, but only one of
them can safely work with it.  It could be that you've closed the libpq
connection in one process and that killed its usability in the other.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Glen Eustace
Дата:
Сообщение: Re: Accessing a database via AJAX scripts
Следующее
От: David Fetter
Дата:
Сообщение: Re: Using AND in query