Disconnect - required, recommended, or optional?

From: "Rodolfo J(dot) Paiz" <rpaiz(at)simpaticus(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Disconnect - required, recommended, or optional?
Date: 2005-04-04 16:40:38
Message-ID: 1112632838.6863.11.camel@rodolfo.gt.factorrent.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi!

I've just noticed that there is a disconnect function in PEAR's DB
module. For web pages (written in PHP) that connect to PostgreSQL,
should I *always* disconnect when finished with that page's queries? Or
is it pretty much optional, or only used in high-traffic situations
where resource exhaustion is a concern?

My database gets less than 1 query per second, so I am not at all
concerned about resources. I am, however, concerned about acquiring good
programming habits as I go along.

Any advice welcome.

Cheers,

--
Rodolfo J. Paiz <rpaiz(at)simpaticus(dot)com>

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Richmond Dyes 2005-04-04 17:34:10 I am verynew to postgresql problem with defining blob field
Previous Message Bruno Wolff III 2005-04-04 14:08:09 Re: Removing Rows in Foreign Keys