pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres closing the connection too fast with php4+apache
2+ messages / 2 participants
[nested] [flat]
* Postgres closing the connection too fast with php4+apache
@ 2000-12-13 09:55 Bruno Boettcher <bboett@erm1.u-strasbg.fr>
0 siblings, 1 reply; 2+ messages in thread
From: bboett@erm1.u-strasbg.fr @ 2000-12-13 09:55 UTC (permalink / raw)
To: pgsql-sql
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/~bboett http://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Postgres closing the connection too fast with php4+apache
@ 2000-12-13 15:15 Roberto Mello <rmello@cc.usu.edu>
parent: Bruno Boettcher <bboett@erm1.u-strasbg.fr>
0 siblings, 0 replies; 2+ messages in thread
From: Roberto Mello @ 2000-12-13 15:15 UTC (permalink / raw)
To: Bruno Boettcher <bboett@erm1.u-strasbg.fr>; +Cc: pgsql-sql
On Wed, Dec 13, 2000 at 10:55:03AM +0100, Bruno Boettcher wrote:
>
> 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
Pardon me,
bout wouldn't this be more appropriate on a PHP list?
-Roberto
--
Computer Science Utah State University
Space Dynamics Laboratory Web Developer
USU Free Software & GNU/Linux Club http://fslc.usu.edu
My home page - http://www.brasileiro.net/roberto
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-13 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-13 09:55 Postgres closing the connection too fast with php4+apache Bruno Boettcher <bboett@erm1.u-strasbg.fr>
2000-12-13 15:15 ` Roberto Mello <rmello@cc.usu.edu>
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