From: Frank Bax <fbax@sympatico.ca>
To: Marco Colombo <marco@esi.it>
Cc: Chris Ruprecht <chrup999@yahoo.com>
Cc: PostGreSQL PHP Group <pgsql-php@postgresql.org>
Subject: Re: pg_pconnect - ??
Date: Thu, 31 Jan 2002 15:28:38 -0500
Message-ID: <3.0.6.32.20020131152838.007c9de0@pop6.sympatico.ca> (raw)
In-Reply-To: <Pine.LNX.4.44.0201312046220.1381-100000@Megathlon.ESI>
References: <3.0.6.32.20020128141957.02130660@pop6.sympatico.ca>
At 09:09 PM 1/31/02 +0100, Marco Colombo wrote:
>On Mon, 28 Jan 2002, Frank Bax wrote:
>> If your postgres database is on the same server as you webserver, there is
>> neglible gains for using pconnect over connect.
>
>Well, it depends on the type of queries. For *a lot* of very simple and
>fast queries performed by the same user (like readonly selects in a single
>user environment), the TCP connect and fork/exec (of the postgres backends)
>overhead may dominate. Of course, whenever the query time dominates,
>it makes hardly a difference.
Ah, I hadn't considered that, query time dominates all my scripts.
Another thing I've noticed. Just for the record ... Persistent connections
do appear to go away after time. When I used them on my relatively idle
(compared to many) server, there almost always were none early in the
morning. With non-scientific methods, and random observations I determined
that the time period was probably between one hour and one day.
Too bad all this info about factors affecting pg_pconnect weren't all in
one place...
Frank
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-php@postgresql.org
Cc: fbax@sympatico.ca, marco@esi.it, chrup999@yahoo.com
Subject: Re: pg_pconnect - ??
In-Reply-To: <3.0.6.32.20020131152838.007c9de0@pop6.sympatico.ca>
References: <3.0.6.32.20020128141957.02130660@pop6.sympatico.ca> <3.0.6.32.20020131152838.007c9de0@pop6.sympatico.ca>
* 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