From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
Cc: | Lists <lists(at)benjamindsmith(dot)com>, pgsql-general(at)postgresql(dot)org, Greg Smith <greg(at)2ndquadrant(dot)com> |
Subject: | Re: Unexpectedly high disk space usage |
Date: | 2012-11-07 22:46:08 |
Message-ID: | 783.1352328368@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
>> WHERE nspname NOT IN ('pg_catalog', 'information_schema')
>> AND C.relkind <> 'i'
>> AND nspname !~ '^pg_toast'
> I question the wisdom of that where clause (from the wiki)
> If the pg_catalog relations are big, then they are big and why
> shouldn't they get reported as such?
Agreed, please change it.
(The index and toast exclusions are reasonable, since those will be
accounted for in pg_total_relation_size of the parent. Personally I'd
code the toast exclusion using relkind not a namespace check though.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | David Boreham | 2012-11-08 01:40:01 | Re: Plug-pull testing worked, diskchecker.pl failed |
Previous Message | Greg Smith | 2012-11-07 22:41:43 | Re: Unexpectedly high disk space usage |