Search Postgresql Archives

Re: Accessing a database via AJAX scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Glen Eustace <geustace@xxxxxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux