Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in

Поиск
Список
Период
Сортировка
Искать
От
Andrew Gierth
Тема
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in
Дата
Msg-id
87pohgawh3.fsf@news-spur.riddles.org.uk
Ответ на
Список
Дерево обсуждения
[COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relationsin Andrew Gierth <rhodiumtoad@postgresql.org>
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in Tom Lane <tgl@sss.pgh.pa.us>
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 onnon-empty relations in Andres Freund <andres@anarazel.de>
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [COMMITTERS] pgsql: Avoid having vacuum set reltuples to 0 onnon-empty relations in Vik Fearing <vik.fearing@2ndquadrant.com>
>>>>> "Andrew" == Andrew Gierth  writes:

 Tom> I have not looked very closely, but I'm suspicious that the test
 Tom> case depends on no autovacuum transactions running concurrently
 Tom> with it.  Disabling autovac on the table itself is not enough to
 Tom> control whether global xmin is being held back by some other
 Tom> autovac transaction somewhere.

 Andrew> Aren't vacuum transactions ignored for that?
 Andrew> vacuum_set_xid_limits is certainly passing ignoreVacuum=true to
 Andrew> GetOldestXmin.

Answering my own question: vacuum transactions are ignored but analyze
transactions aren't, and autovacuum will happily kick off an autoanalyze
of pg_attribute during the test.

Simplest fix seems to just be to remove the delete statement; I've
verified that the problem can be reproduced without it, and that should
make the result independent of OldestXmin. I'll commit that shortly
unless I hear to the contrary.

-- 
Andrew.

В списке pgsql-committers по дате отправления
От: Andrew Gierth
Дата:
От: Peter Eisentraut
Дата:
FAQ