From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Simon Drabble <simon(at)eskimo(dot)com> |
Cc: | Postgres Group <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] Admin details - disk space used |
Date: | 1999-10-28 04:34:39 |
Message-ID: | 199910280434.AAA04644@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Is it possible somehow to get the space taken up by a database on disk? I know
> I can get this as the postgres superuser but it's not particularly clear what
> with system tables and stuff, and of course you have to be the postgres user
> to do it.
>
> It would be nice to be able to do something like
>
> select diskspace();
>
> and have it return the space taken up by each user table.
Just do an 'ls -l' in pgsql/data/base/dbname.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | ednut | 1999-10-28 09:20:42 | Re: Linux/Postgres 6.5 problems using jdbc w/jdk1.2 |
Previous Message | omid omoomi | 1999-10-28 04:08:39 | Re: [GENERAL] A simple SQL command |