From: bboett@erm1.u-strasbg.fr
To: pgsql-sql@postgresql.org
Subject: Postgres closing the connection too fast with php4+apache
Date: Wed, 13 Dec 2000 10:55:03 +0100
Message-ID: <20001213105503.B2513@erm1.u-strasbg.fr> (raw)
Hello,
in old days i was used to open the connection to my DB at the begin of
the script, make lots of stuff inside the script and eventually close
the connection at the end (even if php is supposed to do it for me...).
This stopped to work....
now each time i make a call to the DB i connect, make immediately after
the request, and close immediately....
despite this i still get sometimes the dreaded:
Warning: 45 is not a valid PostgreSQL link resource in
/home/bboett/www/fibu/includes/global.php on line 344
Erreur durant la requete conn = Resource id #45
and most of what i do not understand is : displaying the connection
shows me a var type conform to what i may expect?? so why does this
error appear? if i open the connection at the begin of my script as i
was used, i get for nearly all exec that type of response....
as this way of doing is real DB intensive (i hear it due to my HD....)
is there anything i could do, something i do wrong?
i use postgres, php4, apache on a debian woody x86 system of latest breed...
--
ciao bboett
==============================================================
bboett@earthling.net
http://inforezo.u-strasbg.fr/~bboetthttp://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....
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-sql@postgresql.org
Cc: bboett@erm1.u-strasbg.fr
Subject: Re: Postgres closing the connection too fast with php4+apache
In-Reply-To: <20001213105503.B2513@erm1.u-strasbg.fr>
References: <20001213105503.B2513@erm1.u-strasbg.fr>
* 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