pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Josh Kupershmidt <schmiddy@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Chris <lists@deksai.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: stats collector suddenly causing lots of IO
Date: Fri, 16 Apr 2010 11:30:27 -0400
Message-ID: <g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com> (raw )
In-Reply-To: <9738.1271431432@sss.pgh.pa.us >
References: <20100413170105.GA29571@chris-laptop.a2hosting.com >
<25952.1271370711@sss.pgh.pa.us >
<z2s4ec1cf761004160739w3ac5511jd39263dd043e2da6@mail.gmail.com >
<9738.1271431432@sss.pgh.pa.us >
On Fri, Apr 16, 2010 at 11:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Josh Kupershmidt <schmiddy@gmail.com> writes:
>> I'm not sure whether this is related to the stats collector problems
>> on this machine, but I noticed alarming table bloat in the catalog
>> tables pg_attribute, pg_attrdef, pg_depend, and pg_type.
>
> Hmm. That makes me wonder if autovacuum is functioning properly at all.
> What does pg_stat_all_tables show for the last vacuum and analyze times
> of those tables? Try something like
>
> select relname,n_live_tup,n_dead_tup,last_vacuum,last_autovacuum,last_analyze,last_autoanalyze from pg_stat_all_tables where schemaname = 'pg_catalog' order by 1;
>
Output attached. Note that I ran pg_stat_reset() a few days ago.
Josh
Attachments:
pg_stat_all_tables.txt (text/plain, 4.8K) download
# select relname,n_live_tup,n_dead_tup,last_vacuum,last_autovacuum,last_analyze,last_autoanalyze from pg_stat_all_tables where schemaname = 'pg_catalog' order by 1;
relname | n_live_tup | n_dead_tup | last_vacuum | last_autovacuum | last_analyze | last_autoanalyze
------------------+------------+------------+-------------+-------------------------------+--------------+-------------------------------
pg_aggregate | 0 | 0 | | | |
pg_am | 0 | 0 | | | |
pg_amop | 0 | 0 | | | |
pg_amproc | 0 | 0 | | | |
pg_attrdef | 2 | 3527675 | | | |
pg_attribute | 56 | 12771286 | | | |
pg_auth_members | 11 | 0 | | | |
pg_authid | 16 | 2 | | | |
pg_autovacuum | 0 | 0 | | | |
pg_cast | 0 | 0 | | | |
pg_class | 30191 | 155416 | | 2010-04-15 21:14:06.826358+00 | | 2010-04-15 21:14:06.826358+00
pg_constraint | 2435 | 701 | | 2010-04-15 16:13:33.92506+00 | | 2010-04-15 16:13:33.92506+00
pg_conversion | 0 | 0 | | | |
pg_database | 0 | 0 | | | |
pg_depend | 55 | 4961774 | | | |
pg_description | 0 | 0 | | | |
pg_enum | 0 | 0 | | | |
pg_index | 4603 | 2272 | | 2010-04-15 16:18:21.289279+00 | | 2010-04-15 16:18:21.289279+00
pg_inherits | 2 | 0 | | | |
pg_language | 0 | 0 | | | |
pg_largeobject | 0 | 0 | | | |
pg_listener | 37 | 117512 | | | |
pg_namespace | 0 | 0 | | | |
pg_opclass | 0 | 0 | | | |
pg_operator | 0 | 0 | | | |
pg_opfamily | 0 | 0 | | | |
pg_pltemplate | 0 | 0 | | | |
pg_proc | 0 | 0 | | | |
pg_rewrite | 4 | 0 | | | |
pg_shdepend | 717 | 172806 | | 2010-04-15 16:56:26.296809+00 | | 2010-04-15 16:56:26.296809+00
pg_shdescription | 0 | 0 | | | |
pg_statistic | 0 | 0 | | | |
pg_tablespace | 0 | 0 | | | |
pg_trigger | 7021 | 1232 | | 2010-04-15 16:24:55.054294+00 | | 2010-04-15 16:24:55.054294+00
pg_ts_config | 0 | 0 | | | |
pg_ts_config_map | 0 | 0 | | | |
pg_ts_dict | 0 | 0 | | | |
pg_ts_parser | 0 | 0 | | | |
pg_ts_template | 0 | 0 | | | |
pg_type | 1336 | 342651 | | 2010-04-15 17:18:36.05242+00 | | 2010-04-15 17:18:36.05242+00
(40 rows)
view thread (22+ messages) latest in thread
Message-ID: <g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com>
Permalink: ../g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com/
Also on: postgresql.org/message-id/g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: schmiddy@gmail.com, tgl@sss.pgh.pa.us, lists@deksai.com
Subject: Re: stats collector suddenly causing lots of IO
In-Reply-To: <g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com>
References: <20100413170105.GA29571@chris-laptop.a2hosting.com> <25952.1271370711@sss.pgh.pa.us> <z2s4ec1cf761004160739w3ac5511jd39263dd043e2da6@mail.gmail.com> <9738.1271431432@sss.pgh.pa.us> <g2t4ec1cf761004160830q5dff4315rcc0294d342999c35@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox