Pretty Print Data Sizes
Use the pg_size_pretty()
function to pretty print the sizes of data in PostgreSQL. Given a bigint
, it will determine the most human-readable format with which to print the value:
This function is particularly useful when used with the pg_database_size()
and pg_relation_size()
functions.
Last updated