On Thu, Jun 11, 2009 at 4:36 PM, Dimitri Fontaine
<dfontaine@hi-media.com> wrote:
Vyacheslav Kalinin <
vka@mgcp.com> 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: