pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phill Kenoyer <pgsql@c0de.net>
To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Persistent Connections with PHP and PostgreSQL
Date: Wed, 6 Feb 2002 13:16:43 -0800
Message-ID: <20020206211643.GY27030@home.c0de.net> (raw)
In-Reply-To: <A1D265B81E168745B876193655F97F8D0180A7@mvescexc01.esc.multivalor.com.br>
References: <A1D265B81E168745B876193655F97F8D0180A7@mvescexc01.esc.multivalor.com.br>

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
                                               _   |       _           
                                              (_()(|('.|)('||.|()|`|(



view thread (4+ messages)

Message-ID: <20020206211643.GY27030@home.c0de.net>
Permalink:  ../20020206211643.GY27030@home.c0de.net/
Also on:    postgresql.org/message-id/20020206211643.GY27030@home.c0de.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgsql@c0de.net, Felipe.Nascimento@multivalor.com.br
  Subject: Re: Persistent Connections with PHP and PostgreSQL
  In-Reply-To: <20020206211643.GY27030@home.c0de.net>
  References: <A1D265B81E168745B876193655F97F8D0180A7@mvescexc01.esc.multivalor.com.br> <20020206211643.GY27030@home.c0de.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox