Aarni Ruuhimäki wrote:
...
> Not sure what causes this with your server but I always use something like
> this, ie first connect then do your stuff and then close the connection:
>
> require("dbconnect.inc"); // holds the $conn which is pg_connect("with
> passes")
I would avoid that in favour of using $HOME/.pgpass
http://www.postgresql.org/docs/8.1/interactive/libpq-pgpass.html
HTH
Tino