Re: Excessive growth of pg_attribute and other system tables

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Excessive growth of pg_attribute and other system tables
Date: 2005-03-18 00:37:16
Message-ID: 200503171637.16975.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Thursday 17 March 2005 3:51 pm, Tom Lane wrote:
> Steve Crawford <scrawford(at)pinpointresearch(dot)com> writes:
> > My autovacuum config is running and I do see regular periodic
> > vacuums of these pg_ tables but still they grow.
>
> Do you have the FSM settings set large enough to account for all
> the free space?

max_fsm_pages = 20000
max_fsm_relations = 1000

I just poked through the cluster. I have 6 user databases plus
template0 and template1. Total tables in the cluster has reached
slightly over 1,000 user tables plus all the system tables in the 8
databases. Does this indicate that I need to increase
max_fsm_relations to greater than the total number of tables in the
cluster? If so it's not a problem as bumping it to 2000 will only
cost me ~50k of my 4G memory plus a bit more since max_fsm_pages
would have to be increased to at least 32000.

> Also you might want to check for newer versions of autovacuum. I
> recall that the earlier releases had bugs that sometimes made it
> skip vacuuming tables that should be vacuumed.

pg_autovacuum is from 7.4.6 release and is showing periodic vacuums of
the problem tables. I thought that bug was in some release prior to
7.4.6. Does the bug allow it to show a vacuum taking place but not do
it?

Cheers,
Steve

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-03-18 01:32:48 Re: Excessive growth of pg_attribute and other system tables
Previous Message Tom Lane 2005-03-17 23:51:24 Re: Excessive growth of pg_attribute and other system tables

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-03-18 01:26:10 Re: corrupted tuple (header?), pg_filedump output
Previous Message Eric Parusel 2005-03-18 00:21:23 Re: corrupted tuple (header?), pg_filedump output