Re: question on backends - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: question on backends
Date
Msg-id 1027968150.9150.7.camel@taru.tm.ee
Whole thread Raw
In response to question on backends  ("Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>)
List pgsql-hackers
On Mon, 2002-07-29 at 11:32, Luis Alberto Amigo Navarro wrote:
> Hi all
> As I understand every time there is a request to postgres a new backend
> is made, and when the request is finished, even if the connection is
> already active the backend dies.

I think you have misunderstood it. A new backend is forked only when a
new connection is made, not for every transaction.

There may be some frontends that do make a new connection for each http
request or such, but most of them allow for persistent connections,
either as an option or by default.

> I wonder if is there any parameter
> that allow backends to remain beyond a transaction. Creating a new
> backend every time a transaction is made means forking the code and
> reallocating sort_memory.

------------------
Hannu



pgsql-hackers by date:

Previous
From: Curt Sampson
Date:
Subject: Re: Why is MySQL more chosen over PostgreSQL?
Next
From: Hannu Krosing
Date:
Subject: Re: Why is MySQL more chosen over PostgreSQL?