Re: Proposal: Snapshot cloning

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Proposal: Snapshot cloning
Дата
Msg-id 1169822171.3772.353.camel@silverbirch.site
обсуждение исходный текст
Ответ на Re: Proposal: Snapshot cloning  (Hannu Krosing <hannu@skype.net>)
Ответы Re: Proposal: Snapshot cloning  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: autovacuum process handling
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Proposal: Commit timestamp