Re: vacuum a lot of data when insert only

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: vacuum a lot of data when insert only
Дата
Msg-id 20070621171733.GD5500@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на vacuum a lot of data when insert only  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список pgsql-performance
On Thu, Jun 21, 2007 at 07:53:54PM +0300, Sabin Coanda wrote:
> Reading different references, I understand there is no need to vacuum a
> table where just insert actions perform.

That's false.  First, you must vacuum at least once every 2 billion
transactions.  Second, if a table is INSERTed to, but then the
INSERTing transaction rolls back, it leaves a dead tuple in its wake.
My guess, from your posted example, is that you have the latter case
happening, because you have removable rows (that's assuming you
aren't mistaken that there's never a delete or update to the table).

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
Unfortunately reformatting the Internet is a little more painful
than reformatting your hard drive when it gets out of whack.
        --Scott Morris

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