From: Duan Ligong <l-duan@zd.cnes.jp.nec.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ]To estimate the size of db
Date: Thu, 22 May 2008 10:08:33 +0900
Message-ID: <00ba01c8bba8$5b402750$f623480a@nsl.ad.nec.co.jp> (raw)
References: <004301c8b62b$b183e840$f623480a@nsl.ad.nec.co.jp>
<dcc563d10805211208l27b6cb1as5951112bf504ffaa@mail.gmail.com>
Hi, Scott
Thanks for your reply.
> There's also the old fashioned way:
I mean I want to estimate the size of the space which the db will occupy.
Now there is no db.
> sudo su - postgres
> cd $PGDATA # or wherever you point with -D on startup
> du -sh .
Regards
Duan
--
Duan Ligong
TEL : 0561-75-1925-6201
800-81-569-6201
E-Mail : l-duan@zd.cnes.jp.nec.com
----- Original Message -----
From: "Scott Marlowe" <scott.marlowe@gmail.com>
To: "Duan Ligong" <l-duan@zd.cnes.jp.nec.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Thursday, May 22, 2008 4:08 AM
Subject: Re: [ADMIN] [Admin]To estimate the size of db
> On Wed, May 14, 2008 at 7:33 PM, Duan Ligong <l-duan@zd.cnes.jp.nec.com>
> wrote:
>>
>> Hi, all
>>
>> Is there a way to estimate the size of the space which a postgresql
>> database
>> occupies? or the max size of db?
>>
>> I know there are a lot of factors, such as the frequency
>> of updating, data size, which affects the size of db and it seems
>> difficult
>> to estimate it precisely.
>
> There's also the old fashioned way:
>
> sudo su - postgres
> cd $PGDATA # or wherever you point with -D on startup
> du -sh .
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: l-duan@zd.cnes.jp.nec.com, scott.marlowe@gmail.com
Subject: Re: ]To estimate the size of db
In-Reply-To: <00ba01c8bba8$5b402750$f623480a@nsl.ad.nec.co.jp>
* 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