Re: question on backends - Mailing list pgsql-hackers

From Luis Alberto Amigo Navarro
Subject Re: question on backends
Date
Msg-id 00ae01c2372c$c0ff22f0$cab990c1@atc.unican.es
Whole thread Raw
In response to question on backends  ("Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>)
Responses Re: question on backends
List pgsql-hackers
if i put debug_level=1 i get for one connect and several inserts on backend
die after each insert
----- Original Message -----
From: "Hannu Krosing" <hannu@tm.ee>
To: "Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>
Cc: <pgsql-hackers@postgresql.org>
Sent: Monday, July 29, 2002 8:42 PM
Subject: Re: [HACKERS] question on backends


> 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: Hannu Krosing
Date:
Subject: Re: Why is MySQL more chosen over PostgreSQL?
Next
From: Hannu Krosing
Date:
Subject: Re: question on backends