Re: appropriate sort_mem & shared buffers - Mailing list pgsql-novice

From Francisco Reyes
Subject Re: appropriate sort_mem & shared buffers
Date
Msg-id 20011231125357.F2831-100000@zoraida.natserv.net
Whole thread Raw
In response to Re: appropriate sort_mem & shared buffers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Mon, 31 Dec 2001, Tom Lane wrote:

> > I was thinking that the higher the
> > buffer size the longer it would take for the database to allocate the
> > memory before it can serve the query.
>
> No.  The shared buffers are a static allocation that is made once when
> the postmaster starts.

The web site is using PHP so a connection is stablished every time. The
little I have read little about permanent(persistent?) connections seems
so will look into that later. After this is in production I will start
looking at the archives of the pgsql-php list to see the current state of
php permanent connections.

So if PHP is stablishing a new connection every time isn't a new instance
of the backend, toghether with the overhead of allocating memory space,
been started?

On the apache web server one can have a few instances running waiting for
requests. Can that be done with pgsql, or does it even make sense to have
such arrangement on pgsql?


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: appropriate sort_mem & shared buffers
Next
From: "Kris-Jon Fenton"
Date:
Subject: Random Select from PostgreSQL db