Re: autovacuum not freeing up unused space on 8.3.0

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: Stuart Brooks <stuartb(at)cat(dot)co(dot)za>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: autovacuum not freeing up unused space on 8.3.0
Date: 2008-02-26 15:44:10
Message-ID: 47C433CA.1090300@zeut.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stuart Brooks wrote:
> It'll take a few minutes but I'll try and get the information to you. A
> summary is:
>
> Process 1:
> - writing 50 rows/second, 1 row/transaction.
> - every so often delete 100 rows
>
> Process 2:
> - running ANALYZE VERBOSE and pg_total_relation_size every second
>
> The result is that autovacuum appears to be canceled.

Why do have a second process that does an analyze every second? That
seems like overkill and also if you let autovacuum do it, then it will
play better with vacuums when needed. If you need autovacuum to
analyze more aggressively on this table you can change the table
specific thresholds.

I know that before 8.3 autovacuum wouldn't always keep up on tables like
this, but as of 8.3 with multiple simultaneous workers etc, it should be
much better.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Maciej Sieczka 2008-02-26 15:47:04 Re: how to auto GRANT custom ACL on a new table?
Previous Message Tom Lane 2008-02-26 15:34:35 Re: unnesesary sorting after Merge Full Join