From: Ross J. Reedstrom <reedstrm@rice.edu>
To: pgsql-admin@postgresql.org
Subject: Re: Table Sizes
Date: Fri, 14 Mar 2003 14:21:56 -0600
Message-ID: <20030314202156.GB7004@wallace.ece.rice.edu> (raw)
In-Reply-To: <200303101515.18859.mallah@trade-india.com>
References: <3E6BA947.3050205@waste.org>
<200303101515.18859.mallah@trade-india.com>
On Mon, Mar 10, 2003 at 03:15:18PM +0530, Rajesh Kumar Mallah wrote:
>
> use contrib/dbsize
>
> 1. select relation_size('schemaname.tablename');
> 2. select database_size('databasename');
>
>
> function 1 does not works with tablename in miXed CaSe.
Sure it does, you just need to put the quotes in the right place:
test=# select relation_size('public.foo');
relation_size
---------------
8192
(1 row)
test=# select relation_size('public."FooTwo"');
relation_size
---------------
8192
(1 row)
Ross
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-admin@postgresql.org
Cc: reedstrm@rice.edu
Subject: Re: Table Sizes
In-Reply-To: <20030314202156.GB7004@wallace.ece.rice.edu>
References: <3E6BA947.3050205@waste.org> <200303101515.18859.mallah@trade-india.com> <20030314202156.GB7004@wallace.ece.rice.edu>
* 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