pg_database_size

Started by AI Rummanabout 16 years ago2 messagesgeneral
Jump to latest
#1AI Rumman
rummandba@gmail.com

What does pg_database_size resturs?
Bytes or KB?

Please tell.

#2John R Pierce
pierce@hogranch.com
In reply to: AI Rumman (#1)
Re: pg_database_size

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.