Re: [DOCS] Autovacuum and XID wraparound

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [DOCS] Autovacuum and XID wraparound
Дата
Msg-id 20070516163804.GB4582@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [DOCS] Autovacuum and XID wraparound  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
Heikki Linnakangas wrote:
> Alvaro Herrera wrote:
> >However, given that Heikki just confirmed that CLUSTER does not freeze
> >tuples, it's not really possible to do this, so I'll drop the CLUSTER
> >patch for now.
> >
> >This means that people using CLUSTER to compact tables won't have the
> >benefit of advancing relfrozenxid, so they will have to run VACUUM on
> >those tables at some point anyway, even though there will be no dead
> >tuples :-(
>
> Now that I think this a bit more, I think CLUSTER should freeze the
> tuples. I was worried about losing valuable debug information by doing
> that, but thinking a bit more that's not a big concern: we wouldn't
> freeze tuples newer than recent xmin. The update chain logic is the most
> risky part of the code, and we wouldn't lose the xmin and xmax of tuples
> that are part of update chains.
>
> Patch attached. You'll need the changes to cluster.c to set the
> relfrozenid as well.

Thanks, committed.  (I changed NULL for InvalidBuffer).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-patches по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [DOCS] OS/X startup scripts
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [DOCS] Autovacuum and XID wraparound