From: Chris Hoover <revoohc@gmail.com>
To: Benjamin Krajmalnik <kraj@illumen.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Querying database size
Date: Fri, 7 Jul 2006 13:50:48 -0400
Message-ID: <1d219a6f0607071050y4599b1f7w5f416ad72a382e0e@mail.gmail.com> (raw)
In-Reply-To: <BF337097BDD9D849A2F4B818DDB279870293F9@stash.stackdump.local>
References: <BF337097BDD9D849A2F4B818DDB279870293F9@stash.stackdump.local>
On 7/7/06, Benjamin Krajmalnik <kraj@illumen.com> wrote:
>
> Is there a query which can be issued which will return the size of a
> database?
> I see that in pgadmin you can get the values on a per table manner.
> I have looced at the pg_catalog schema, but to be truthful I cannot
> figure out how to get that information.
>
> TIA,
>
> Benjamin
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
select datname, pg_database_size(datname) from pg_database;
This assumes your are running 8.x (might be 8.1.x).
chris
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: revoohc@gmail.com, kraj@illumen.com
Subject: Re: Querying database size
In-Reply-To: <1d219a6f0607071050y4599b1f7w5f416ad72a382e0e@mail.gmail.com>
References: <BF337097BDD9D849A2F4B818DDB279870293F9@stash.stackdump.local> <1d219a6f0607071050y4599b1f7w5f416ad72a382e0e@mail.gmail.com>
* 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