DB and postgres: Persistent connection
| From: | Søren Schimkat | Date: | Wed, 15 Jun 2005 17:22:06 +0000 |
| Subject: | DB and postgres: Persistent connection | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19639@lists.php.net to get a copy of this message | ||
Hi Guys
I´m having troubles with persistent connections when connecting to my postgres server. I connect like this:
$dsn = $GLOBALS['db_type'] . '://' .
Attachment: [application/x-pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
$GLOBALS['db_user'] . ':' .
$GLOBALS['db_pass'] . '@'.
$GLOBALS['db_host'] . ':' .
$GLOBALS['db_port'] . '/'.
$GLOBALS['db_name'];
$db = DB::connect($dsn);
The connection is made, but the connection hangs if a query is performed.
Do I need to disconnect() or is there an other trick for awoiding the persistent connections?
--
Regards Søren Schimkat
www.schimkat.dk
Attachment: [application/x-pkcs7-signature] S/MIME Cryptographic Signature smime.p7s