Re: About persistent connections...

From: David BOURIAUD <david(dot)bouriaud(at)ac-rouen(dot)fr>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: About persistent connections...
Date: 2002-03-04 07:49:50
Message-ID: 200203040752.g247qG110477@necker.ac-rouen.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Gary !

> Hi Dave,
>
> The whole point of a persistant connection is that it doesn't close. HTTP
> is completely stateless and unless you do clever stuff like session
> management, every visit to the site is totally seperate. The connection
> process for Pg is slow, and the point of persistent connections is to get
> round this.

Sure, that's what I understood from the various docs I read !

>
> If you are using persistent connections, then the user clicking quit will
> make no difference anyway. The only way to close the connection is to
> either restart the web server, or restart Postmaster.

Sure again, but the fact is that when I provide a "quit" button, it redirects
the client towards a php page that closes the connection, erases the session
file and tells him that he is now away, so, I tend to think that the
connection is definetly closed afetr the reading of this page.

>
> As a site note, it would be nice to be able to set a timeout for a
> persistant connection so that periodically the connection is closed, and a
> new clean connection made on request.

That would be great enough indeed !
As a mater of fact, I didn't suspect the existence of pgsql-php list, as
suggests Josh in reply of my previous mail, and I'll subscribe to this list
right now to make out what's related to this.
Thanks anyway for your concern.

--
David BOURIAUD
----------------------------------------------------------
In a world without walls or fences, what use do we have
for windows or gates ?
----------------------------------------------------------
ICQ#102562021

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dan Langille 2002-03-04 07:51:47 Re: [SQL] thinking about versioning my database schema
Previous Message Janning Vygen 2002-03-04 07:10:24 thinking about versioning my database schema