Re: pg_database_size - Mailing list pgsql-general

From John R Pierce
Subject Re: pg_database_size
Date
Msg-id 4B52BACA.5090109@hogranch.com
Whole thread Raw
In response to pg_database_size  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
AI Rumman wrote:
> What does pg_database_size resturs?
> Bytes or KB?


those functions all return size in bytes. you can use
pg_size_pretty(pg_database_size('dbname'))  to pretty print it as MB or
whatever is most appropriate.

pgsql-general by date:

Previous
From: AI Rumman
Date:
Subject: pg_database_size
Next
From: Emanuel Calvo Franco
Date:
Subject: Re: Constraint exclusion issue