From: | salman <salmanb(at)quietcaresystems(dot)com> |
---|---|
To: | Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info> |
Cc: | "Reynolds, Gregory A" <gregory(dot)a(dot)reynolds(at)lmco(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: dbsize command |
Date: | 2008-06-23 19:40:15 |
Message-ID: | 485FFC1F.3040306@quietcaresystems.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Brad Nicholson wrote:
> On Mon, 2008-06-23 at 10:50 -0700, Reynolds, Gregory A wrote:
>> In past versions there was a contrib/dbsize command that would tell
>> you how much storage space was being taken by a table. Is that is
>> still a supported feature in 8.3, and if so what is the syntax or
>> where is the documentation on how to use it?
>
> There are a series of functions in the database core that will tell you
> this now.
>
> http://www.postgresql.org/docs/8.3/interactive/functions-admin.html
>
This is what I use: SELECT
pg_size_pretty(pg_database_size(current_database()));
Found it a while back on pg-general.
-salman
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Futerman | 2008-06-23 19:43:39 | Update Join Query |
Previous Message | Nikola | 2008-06-23 19:40:04 | Bulk load data from one table to another |