Re: Clearing rows periodically

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Clearing rows periodically
Дата
Msg-id 23422.1058535067@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Clearing rows periodically  (Martin Foster <martin@ethereal-realms.org>)
Список pgsql-performance
Martin Foster <martin@ethereal-realms.org> writes:
> My question is, should the purging of rows be done more often then once
> a day for both tables.   Is this why performance seems to take a hit
> specifically?

Given that the hourly purge seems to work well for you, I'd suggest
trying it on both tables.

Non-FULL vacuum is intended to be run *frequently*, say as often as
you've updated or deleted 10% to 50% of the rows in a table.  Delaying
it until you've had multiple complete turnovers of the table contents
will cost you.

> As there were too many rows purged for vacuum to
> accurately keep track of?

Only possible if you don't have the FSM parameters set high enough.
Infrequent vacuuming means you need more FSM space, btw.

            regards, tom lane

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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Hardware performance
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: index / sequential scan problem