Search Postgresql Archives

Re: Accessing a database via AJAX scripts

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

 



On Sun, Aug 8, 2010 at 5:08 PM, Glen Eustace <geustace@xxxxxxxxxxxxxx> wrote:
> Thanks Tom, that is pretty much the conclusion I came to.  I think I need to
> close the db connection prior to the fork and then re-open in the new child.
>

Yes, you pretty much have to do this.  I usually do the close
immediately after fork in the child, but set the DBI attribute
InactiveDestroy on the handle so it doesn't destroy the parent's
handle.

-- 
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