Re: : Performance Improvement Strategy - Mailing list pgsql-performance

From Guillaume Cottenceau
Subject Re: : Performance Improvement Strategy
Date
Msg-id m3zkhfhj4h.fsf@mnc.ch
Whole thread Raw
In response to Re: : Performance Improvement Strategy  (Venkat Balaji <venkat.balaji@verse.in>)
List pgsql-performance
Venkat Balaji <venkat.balaji 'at' verse.in> writes:

> Hello,
>
> I was attempting to calculate the actual occupied space by a Table.

SELECT relname, reltuples, pg_size_pretty(relpages*8*1024) as size FROM pg_class, pg_namespace WHERE pg_namespace.oid =
pg_class.relnamespaceAND relkind = 'r' AND nspname = 'public' ORDER BY relpages DESC; 

relkind = 'i' for indexes.

--
Guillaume Cottenceau

pgsql-performance by date:

Previous
From: Raghavendra
Date:
Subject: Re: : Performance Improvement Strategy
Next
From: "Kevin Grittner"
Date:
Subject: Re: : Performance Improvement Strategy