Re: append_array causes rapid growth according to pg_total_relation_size

Поиск
Список
Период
Сортировка
От Randall Smith
Тема Re: append_array causes rapid growth according to pg_total_relation_size
Дата
Msg-id 1282545104.2139.9.camel@randall-laptop
обсуждение исходный текст
Ответ на append_array causes rapid growth according to pg_total_relation_size  (Randall Smith <randall@tnr.cc>)
Список pgsql-general
More information including a workaround.

VACUUM ANALYZE is not freeing space after an array_append, but it does
after replacing a specific element in the array.

So if I do this:

update array_big1 set chunk_ids = array_append(chunk_ids, '1') where id
= 0;
update array_big1 set chunk_ids[1] = chunk_ids[1] where id = 0;

VACUUM ANALYZE reclaims the growth caused by array_append.

-Randall




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

Предыдущее
От: Mike Christensen
Дата:
Сообщение: Npgsql Exception
Следующее
От: Mike Christensen
Дата:
Сообщение: Re: Npgsql Exception