Re: Have vacuum emit a warning when it runs out of maintenance_work_mem

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Have vacuum emit a warning when it runs out of maintenance_work_mem
Дата
Msg-id 4646E61B.1030202@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Have vacuum emit a warning when it runs out of maintenance_work_mem  ("Jim C. Nasby" <jim@nasby.net>)
Ответы Re: Have vacuum emit a warning when it runs out of maintenance_work_mem  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-patches
Jim C. Nasby wrote:
> On Sat, May 12, 2007 at 07:57:44PM +0100, Heikki Linnakangas wrote:
>> Or we could switch to a more compact representation of the dead tuples,
>> and not need such a big maintenance_work_mem in the first place.
>
> Sure, but even with a more compact representation you can still run out
> of maintenance_work_mem... unless we allow this to spill to disk. At
> first guess that sounds insane, but if you've got a large enough set of
> indexes it *might* actually be faster.

It would only make sense if the table is clustered on an index, so that
you'd in practice only need to keep part of the array in memory at a
time. It's pretty narrow use case, not worth spending time on I think.

> Either way, as long as maintenance_work_mem is an issue I think we need
> a way to warn users.

I agree.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Have vacuum emit a warning when it runs out of maintenance_work_mem
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: updated WIP: arrays of composites