[OT] Re: enabling autovacuum

From: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
To: Jeremy Harris <jgh(at)wizmail(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: [OT] Re: enabling autovacuum
Date: 2008-01-29 01:40:52
Message-ID: 1201570852.910.0.camel@neuromancer.home.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mon, 2008-01-28 at 22:17 +0000, Jeremy Harris wrote:
> We have one problematic table, which has a steady stream of entries
> and a weekly mass-delete of ancient history. The "bloat" query from
> Greg Sabino Mullane (thanks to Greg Smith for pointing it out) returns:
>
> schemaname | tablename | reltuples | relpages | otta | tbloat | wastedpages | wastedbytes | wastedsize | iname | ituples | ipages | iotta | ibloat | wastedipages | wastedibytes | wastedisize
> ------------+------------+-----------+----------+------+--------+-------------+-------------+------------+-----------------------------+---------+--------+-------+--------+--------------+--------------+-------------
> public | rcpt_audit | 1300300 | 152149 | 6365 | 23.9 | 145784 | 1194262528 | 1139 MB | rcpt_audit_msg_audit_id_idx | 1300300 | 6798 | 3819 | 1.8 | 2979 | 24403968 | 23 MB
> public | rcpt_audit | 1300300 | 152149 | 6365 | 23.9 | 145784 | 1194262528 | 1139 MB | rcpt_audit_id_idx | 1300300 | 4727 | 3819 | 1.2 | 908 | 7438336 | 7264 kB
>
Can you let me know what is the sql used to generate such a nice summary
of the tables?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2008-01-29 01:57:02 Re: [OT] Re: enabling autovacuum
Previous Message Bruce Momjian 2008-01-29 00:07:59 Re: suggested wording improvement in psql