Re: CLUSTER and MVCC

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Csaba Nagy <nagy(at)ecircle-ag(dot)com>, postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CLUSTER and MVCC
Date: 2007-03-09 16:48:49
Message-ID: 45F18FF1.1080801@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
>> We wouldn't clean up tuples that are visible to a transaction, but if
>> you have one long-running transaction like pg_dump in a database with
>> otherwise short transaction, you'll have a lot of tuples that are not
>> vacuumable because of the long-running process, but are not in fact
>> visible to any transaction.
>
> It sounds to me like you are proposing to remove the middles of update
> chains, which would break READ-COMMITTED updates initiated by the older
> transactions. Now admittedly pg_dump isn't going to issue any such
> updates, but VACUUM doesn't know that.

You could restrict this to serializable transactions, or even to
read-only transactions. Or maybe the tuple could be reduced to
just it's header - doesn't HOT do something similar?

greetings, Florian Pflug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-03-09 16:57:18 Re: Interaction of PITR backups and Bulkoperationsavoiding WAL
Previous Message Tom Lane 2007-03-09 16:47:53 Re: Interaction of PITR backups and Bulk operationsavoiding WAL