Answers for "postgres check db size"

SQL
7

how to get the size of the database in postgresql

SELECT pg_size_pretty( pg_database_size('dbname') );
Posted by: Guest on February-09-2021
4

postgres check size table

SELECT pg_size_pretty( pg_total_relation_size('tablename') );
Posted by: Guest on June-15-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language