Re: Recalculating OldestXmin in a long-running vacuum

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Recalculating OldestXmin in a long-running vacuum
Дата
Msg-id 20070219170435.GU28395@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [pgsql-patches] Recalculating OldestXmin in a long-running vacuum  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Recalculating OldestXmin in a long-running vacuum  (Heikki Linnakangas <heikki@enterprisedb.com>)
Re: Recalculating OldestXmin in a long-running vacuum  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
> > Tom Lane wrote:
> >> BTW I've got serious reservations about whether this bit is safe:
> >>
> >>> +             /* The table could've grown since vacuum started, and there
> >>> +              * might already be dead tuples on the new pages. Catch them
> >>> +              * as well. Also, we want to include any live tuples in the
> >>> +              * new pages in the statistics.
> >>> +              */
> >>> +             nblocks = RelationGetNumberOfBlocks(onerel);
> >>
> >> I seem to recall some assumptions somewhere in the system that a vacuum
> >> won't visit newly-added pages.
>
> > Hmm, I can't think of anything.
>
> I think I was thinking of the second risk described here:
> http://archives.postgresql.org/pgsql-hackers/2005-05/msg00613.php
> which is now fixed so maybe there's no longer any problem.  (If there
> is, a change like this will convert it from a very-low-probability
> problem into a significant-probability problem, so I guess we'll
> find out...)
>
> I still don't like the patch though; rechecking the relation length
> every N blocks is uselessly inefficient and still doesn't create any
> guarantees about having examined everything.  If we think this is
> worth doing at all, we should arrange to recheck the length after
> processing what we think is the last block, not at any other time.

Was this revisited?

I'm wondering if there has been any effort to make this work in
conjunction with ITAGAKI Takahiro's patch to correct the dead tuple
count estimate.

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

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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: WIP patch - INSERT-able log statements
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: WIP patch - INSERT-able log statements