Re: new connection with pg_pconnect
| From: | Greg Donald | Date: | Thu, 14 Oct 2004 21:12:19 +0000 |
| Subject: | Re: new connection with pg_pconnect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199532@lists.php.net to get a copy of this message | ||
On Thu, 14 Oct 2004 14:30:18 -0500 (CDT), Jonathan Villa <jvilla@e37.net> wrote:
> I'm assuming that I need to close the persistent connection before I can
> open a new one, but from my understanding, persistent connections cannot
> be closed...
That is true for all persistant db connection functions, pg_pconnect,
mysql_pconnect, etc.
http://www.php.net/manual/en/features.persistent-connections.php
is a
pretty good read.
> Is the persistent connection open only to the database in which it was
> opened for? How can I choose a different database?
For Postgres you have to create a new (2nd) connection, since the
database is selected when the connection occurs.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/