Postgres pconnect
| From: | H. Wade Minter | Date: | Wed, 17 Jan 2001 19:38:05 +0000 |
| Subject: | Postgres pconnect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35122@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a website where each new page access connects to a Postgres
database to load information. Each DB connect uses a $dblink=pg_connect()
to connect to the database. I'd like to avoid the overhead with opening a
new connection with every page.
So, can I change all of the pg_connect calls to pg_pconnect call and have
the pages use persistent connections, or is there something more that
needs to be done?
- --Wade
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6ZfSfX5y4ZKLK2pMRAkVBAKCznNSkCNX7CCZtnWSVKKMqmf7tSwCgiBez
q4vzBEFouHJ2ZvaLXvJGvdo=
=nNgn
-----END PGP SIGNATURE-----