Re: Persistent Connections with PHP and PostgreSQL - Mailing list pgsql-admin

From Phill Kenoyer
Subject Re: Persistent Connections with PHP and PostgreSQL
Date
Msg-id 20020206211643.GY27030@home.c0de.net
Whole thread Raw
In response to Persistent Connections with PHP and PostgreSQL  (Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>)
List pgsql-admin
PHP will close the connection at the end of the script.  I always call
pg_close() when I'm done accessing the db. If your script is short and
quick, then it should not be a problem.  If it does some more processing
on the data after you finished with the connection, why keep it open?

|On 020206 13:11
|Felipe Nascimento (Felipe.Nascimento@multivalor.com.br) wrote the following...
|
|Do I have to call pg_close() every time at the end of the script??
|
|Tks
|Felipe
|
--
BOFH Reason of the day: backup tape overwritten with copy of system manager's favourite CD
                                               _   |       _
                                              (_()(|('.|)('||.|()|`|(

pgsql-admin by date:

Previous
From: Naomi Walker
Date:
Subject: Re: Recovery - transaction logs
Next
From: Felipe Nascimento
Date:
Subject: Re: Persistent Connections with PHP and PostgreSQL