Database size

Поиск
Список
Период
Сортировка
Искать

Database size

От:
Joe Block <jpb@ApesSeekingKnowledge.net>
Дата:
I'm doing some work for an ISP, and need to be able to tell how large a 
database is for billing purposes.  I looked in the docs and checked the 
list archives, but didn't find anything.

It seems like this would be a common thing to check.

thanks,

jpb
--
Joe Block 

Eve succumbed to the tempation of the Apple.

Re: Database size

От:
Jason Earl <jason.earl@simplot.com>
Дата:

man du :)

Actually if you look in the PostgreSQL data directory you will see a
folder for each database.  Unfortunately they all have numbers that
match up with the oid of the database instead of something like
larrys_database.

There is a program in contrib (oid2name) that matches these numbers up
with the database name.

Jason

Joe Block  writes:

> I'm doing some work for an ISP, and need to be able to tell how large
> a database is for billing purposes.  I looked in the docs and checked
> the list archives, but didn't find anything.
> 
> It seems like this would be a common thing to check.
> 
> thanks,
> 
> jpb
> --
> Joe Block 
> 
> Eve succumbed to the tempation of the Apple.
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
FAQ