Re: question on backends

From: "Luis Alberto Amigo Navarro" <lamigo(at)atc(dot)unican(dot)es>
To: "Hannu Krosing" <hannu(at)tm(dot)ee>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: question on backends
Date: 2002-07-29 18:21:27
Message-ID: 00ae01c2372c$c0ff22f0$cab990c1@atc.unican.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)tm(dot)ee>
To: "Luis Alberto Amigo Navarro" <lamigo(at)atc(dot)unican(dot)es>
Cc: <pgsql-hackers(at)postgresql(dot)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
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2002-07-29 18:42:30 Re: question on backends
Previous Message Curt Sampson 2002-07-29 17:01:19 Re: Why is MySQL more chosen over PostgreSQL?