Обсуждение: Database / table sizeof

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

Database / table sizeof

От
Rudi Starcevic
Дата:
    Hi,

How can I measure how much hardrive space a user's database is using I 
wonder ?
Someone could have '000's of small row's or perhaps 1 large BLOB.
Is there a way I can add up all the row's for a database and end up with 
Kb's ?

Thanks
Regards Rudi.



Re: Database / table sizeof

От
"Christopher Kings-Lynne"
Дата:
You can probably find something useful here:

http://techdocs.postgresql.org/

Chris

> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Rudi Starcevic
> Sent: Thursday, 28 March 2002 1:55 PM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] Database / table sizeof
> 
> 
>     Hi,
> 
> How can I measure how much hardrive space a user's database is using I 
> wonder ?
> Someone could have '000's of small row's or perhaps 1 large BLOB.
> Is there a way I can add up all the row's for a database and end up with 
> Kb's ?
> 
> Thanks
> Regards Rudi.
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 



Re: Database / table sizeof

От
Rudi Starcevic
Дата:
Thanks Christopher,

Been looking so far but no joy.
At worst a can write a script in Perl or PHP to go and select all
records for a particular database, measure them by assigning each row to 
a variable in a loop and add them all up.

Once for late at night / early morning.
Cheers
Rudi.



Christopher Kings-Lynne wrote:

>You can probably find something useful here:
>
>http://techdocs.postgresql.org/
>
>Chris
>
>>-----Original Message-----
>>From: pgsql-sql-owner@postgresql.org
>>[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Rudi Starcevic
>>Sent: Thursday, 28 March 2002 1:55 PM
>>To: pgsql-sql@postgresql.org
>>Subject: [SQL] Database / table sizeof
>>
>>
>>    Hi,
>>
>>How can I measure how much hardrive space a user's database is using I 
>>wonder ?
>>Someone could have '000's of small row's or perhaps 1 large BLOB.
>>Is there a way I can add up all the row's for a database and end up with 
>>Kb's ?
>>
>>Thanks
>>Regards Rudi.
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 2: you can get off all lists at once with the unregister command
>>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>