Re: CLUSTER and MVCC

From: "Mike Rylander" <mrylander(at)gmail(dot)com>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Cc: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Csaba Nagy" <nagy(at)ecircle-ag(dot)com>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Gregory Stark" <stark(at)enterprisedb(dot)com>, "postgres hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CLUSTER and MVCC
Date: 2007-03-09 15:50:30
Message-ID: b918cf3d0703090750l6e2441abl40747dae8e1135e9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/9/07, Florian G. Pflug <fgp(at)phlo(dot)org> wrote:
> Heikki Linnakangas wrote:
> > Csaba Nagy wrote:
> >> On Fri, 2007-03-09 at 14:00, Alvaro Herrera wrote:
> >>> But I'm not really seeing the problem here. Why isn't Csaba's problem
> >>> fixed by the fact that HOT reduces the number of dead tuples in the
> >>> first place? If it does, then he no longer needs the CLUSTER
> >>> workaround, or at least, he needs it to a much lesser extent.
> >>
> >> Is this actually true in the case of HOT + long running transactions ? I
> >> was supposing HOT has the same problems in the presence of long running
> >> transactions...
> >
> > It does, HOT won't help you here. A long-running transaction is just as
> > much of a problem with HOT as without. Besides, I don't recall that
> > you're doing updates in the first place.
>
> Couldn't HOT in principle deal with this? Let's say you have two long-running
> transactions, which see row versions A and D. While those transactions
> are running, the row is constantly updated, leading to row versions B, C (before
> the second long-running transaction started), D, E, F, ... Z.
> Now, the versions B,C,E,F,...Z could be removed by HOT or vacuum, because they
> are not currently visible, nor will they ever become visible because they are
> already deleted.

Couldn't they (or at least one of them) become visible due to
SAVEPOINT rollback?

>
> greetings, Florian Pflug
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Mike Rylander
mrylander(at)gmail(dot)com
GPLS -- PINES Development
Database Developer
http://open-ils.org

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-03-09 15:52:36 Re: CLUSTER and MVCC
Previous Message Heikki Linnakangas 2007-03-09 15:49:59 Re: CLUSTER and MVCC