Re: remove flatfiles.c

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: remove flatfiles.c
Дата
Msg-id 4A9DB4C4.2060503@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Re: remove flatfiles.c  (Greg Stark <gsstark@mit.edu>)
Ответы Re: remove flatfiles.c  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Greg Stark wrote:
> 
> That's what I want to believe. But picture if you have, say a
> 1-terabyte table which is 50% dead tuples and you don't have a spare
> 1-terabytes to rewrite the whole table.

Could one hypothetically do  update bigtable set pk = pk where ctid in (select ctid from bigtable order by ctid desc
limit100);  vacuum;
 
and repeat until max(ctid) is small enough?

Sure, it'll take longer than vacuum full; but at first glance
it seems lightweight enough to do even on a live, heavily accessed
table.

IIRC I tried something like this once, and it worked to some extent,
but after a few loops didn't shrink the table as much as I had expected.



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Linux LSB init script
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Linux LSB init script