Search Postgresql Archives

Re: persistent db connections in PHP

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

 



Raymond O'Donnell wrote:

lawpoop@xxxxxxxxx wrote:
However, with this new Postgres site, I don't have access to my temp
tables after I've traversed another pg_connect. So PHP is either
creating a new connection, or giving me another session, not the one
which I created my tables in.

You wouldn't expect to be given back the same connection (and hence the same temp tables) from a pool of connections - they're returned randomly.

Scott Marlowe wrote:
MySQL reuses old connections within the same script. PostgreSQL's php extension does not, it starts a new connection each time.

Isn't pg_pconnect supposed to recycle a pooled connection?

I wasn't speaking of pg_pconnect. I was speaking of mysql_connect and pg_connect.



[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