Search Postgresql Archives

Re: Postgres Pg_connect PHP

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

 





On Thu, Jun 11, 2009 at 4:36 PM, Dimitri Fontaine <dfontaine@xxxxxxxxxxxx> wrote:
Vyacheslav Kalinin <vka@xxxxxxxx> writes:

>  $conn = pg_pconnect("dbname=foo");

Please reconsider and use plain pg_connect().
--
dim
Uh, I just copied/pasted that part from somewhere in PHP manual, personally I tend to use plain pg_connect and pgbouncer for pooling when needed.
For those curious why pconnect is not the best option for connection pooling - discussion on this topic rises in this list from time to time, check this out, for instance:
http://archives.postgresql.org/pgsql-general/2007-08/msg00660.php

[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