From: | "Shoaib Mir" <shoaibmir(at)gmail(dot)com> |
---|---|
To: | 马庆 <ma(dot)qing(at)staples(dot)sh(dot)cn> |
Cc: | JM <jerome(at)gmanmi(dot)tv>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] 答复: [GENERAL] Need Help |
Date: | 2006-12-28 09:11:39 |
Message-ID: | bf54be870612280111h732ee92dl894dd7c0276beacd@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
This should help you get the disk usage for a table:
select pg_size_pretty(pg_relation_size('tablename'));
---------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)
On 12/28/06, 马庆 <ma(dot)qing(at)staples(dot)sh(dot)cn> wrote:
>
> Maybe U can't get the disk usage info, but you can try command "explain"
>
>
> -----邮件原件-----
> 发件人: pgsql-general-owner(at)postgresql(dot)org [mailto:
> pgsql-general-owner(at)postgresql(dot)org] 代表 JM
> 发送时间: 2006年12月28日 10:43 MARK
> 收件人: pgsql-general(at)postgresql(dot)org
> 抄送: Pgsql-Performance (E-mail)
> 主题: [GENERAL] Need Help
>
> how can i get the disk usage for each table? can i do it via SQL?
>
>
>
> Thanks,
>
> Mailing-Lists
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Farber | 2006-12-28 09:51:07 | Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog. |
Previous Message | Piotr Szałamacha | 2006-12-28 09:03:31 | questions about migrating form postgres 7 to 8 |