Re: Proposal: Snapshot cloning - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Proposal: Snapshot cloning
Date
Msg-id 1169822171.3772.353.camel@silverbirch.site
Whole thread Raw
In response to Re: Proposal: Snapshot cloning  (Hannu Krosing <hannu@skype.net>)
Responses Re: Proposal: Snapshot cloning
List pgsql-hackers
On Fri, 2007-01-26 at 16:09 +0200, Hannu Krosing wrote:
> Ühel kenal päeval, R, 2007-01-26 kell 12:25, kirjutas Simon Riggs:

> > Great idea. It can also be used by pg_dump to publish its snapshot so
> > that we can make VACUUM continue to process effectively while it pg_dump
> > is running.
>
> Do you mean we that vacuum would clean up tuples still visible to
> pgdump ?

No, that would break MVCC. But we may have done lots of updates/deletes
that are *not* visible to any Snapshot, yet are not yet removable
because they are higher than OldestXmin but we don't know that because
previously the Snapshot details were not available. ISTM that this
proposal is a way of making the Snapshot limits publicly available so
that they can be used by VACUUM. Sure it isn't every backend, but the
details may be useful. So this is an additional benefit to this
proposal. (There's a hole in the above idea, so don't jump on my back to
explain it - I see it and am trying to work out a way around it...)

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: autovacuum process handling
Next
From: Stephen Frost
Date:
Subject: Re: Proposal: Commit timestamp