Re: pg_relation_size performance issue - Mailing list pgsql-general

From Adrian Klaver
Subject Re: pg_relation_size performance issue
Date
Msg-id 557061B4.3060706@aklaver.com
Whole thread Raw
In response to Re: pg_relation_size performance issue  (Hans Guijt <hg@terma.com>)
List pgsql-general
On 06/04/2015 07:24 AM, Hans Guijt wrote:
> Thanks, this is most helpful. I originally found that query somewhere on
> the internet and used it as-is.
>
> If I drop the restriction on table name I get a list that also includes
> indexes, constraints, etc. Is there a way to restrict the returned set
> to tables only?

http://www.postgresql.org/docs/9.4/interactive/catalog-pg-class.html

relkind = 'r'

>
> Hans Guijt
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Melvin Davidson
Date:
Subject: Re: pg_relation_size performance issue
Next
From: Marc Mamin
Date:
Subject: Re: Row visibility issue with consecutive triggers, one being DEFERRED