Re: System catalog vacuum issues

From: Jim Nasby <jim(at)nasby(dot)net>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: Vlad Arkhipov <arhipov(at)dc(dot)baikal(dot)ru>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: System catalog vacuum issues
Date: 2013-08-21 21:33:41
Message-ID: 52153235.3000607@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 8/19/13 7:23 PM, Sergey Konoplev wrote:
> On Thu, Aug 15, 2013 at 7:03 PM, Vlad Arkhipov<arhipov(at)dc(dot)baikal(dot)ru> wrote:
>>> >>Do you have some processes that intensively create tables or columns
>>> >>and then delete them or create them in transaction and rollback the
>>> >>transaction?
>>> >>
>> >There are many processes that create and drop temporary tables.
> That is the problem. Exactly what Jim was writing about. Autovacuum
> have no chance to clean dead tuples at the end of the table because
> they are created too intensively. In the latest versions autovacuum
> behaves so it would stop working when a concurrent lock is acquired.
> As he suggested you should use vacuum in cron, however it might make
> other procecess, that create/drop tables to wait.

Hrm... even if vacuum cost delay is set? I recall some talk about doing some minimal waiting for the lock, but thought that'd only happen if cost delay was 0.

That really doesn't matter though. The whole idea of a cron'd vacuum is to *stop bloat from happening to begin with*. If there's no bloat to begin with, getting the lock to truncate will be a non-issue.
--
Jim C. Nasby, Data Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2013-08-21 21:39:00 Re: proposal: lob conversion functionality
Previous Message Boszormenyi Zoltan 2013-08-21 19:31:28 Re: GSOC13 proposal - extend RETURNING syntax