From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [COMMITTERS] pgsql: Avoid losing track of data for shared tables in pgstats. |
Date: | 2007-06-08 02:04:54 |
Message-ID: | 20070608020454.GA2199@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Thu, Jun 07, 2007 at 11:46:17PM +0100, Gregory Stark wrote:
> Does anything use the pgstats data for anything other than presenting feedback
> to users?
>
> Autovacuum uses it to estimate when tables should be vacuumed right? This
> wouldn't have caused autovacuum to go nuts vacuuming these tables would it?
> But I doubt even then that it could consume much i/o bandwidth.
I discovered this problem after noticing that pg_shdepend had gotten
horribly bloated -- apparently due to heavy use of temporary tables
by an application whose performance I was investigating -- despite
autovacuum being enabled. When I looked at the statistics for
pg_shdepend the values for n_tup_{ins,upd,del} were much lower than
I expected. After watching the numbers grow for a few minutes I
saw them reset; after observing this behavior several times I was
able to correlate the resets with vacuums of other tables.
Since the statistics for pg_shdepend rarely got high enough to
trigger an autovacuum that table was almost never being vacuumed.
I suggested to the DBA that he vacuum it manually; after five minutes
the vacuum completed and the application's performance improved
immediately.
INFO: "pg_shdepend": found 8475403 removable, 3907 nonremovable row versions in 76783 pages
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2007-06-08 02:28:39 | Re: [COMMITTERS] pgsql: Avoid losing track of data for shared tables in pgstats. |
Previous Message | Alvaro Herrera | 2007-06-08 01:12:31 | Re: [COMMITTERS] pgsql: Avoid losing track of data for shared tables in pgstats. |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2007-06-08 02:28:39 | Re: [COMMITTERS] pgsql: Avoid losing track of data for shared tables in pgstats. |
Previous Message | Alvaro Herrera | 2007-06-08 01:32:01 | Re: query log corrupted-looking entries |