{"id":12266,"date":"2022-08-03T13:39:24","date_gmt":"2022-08-03T17:39:24","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12266"},"modified":"2022-08-03T13:39:27","modified_gmt":"2022-08-03T17:39:27","slug":"get-the-size-of-the-database-in-postgresql","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/get-the-size-of-the-database-in-postgresql\/","title":{"rendered":"How to Get the Size of the Database in PostgreSQL"},"content":{"rendered":"\n
How to Get the Size of the Database in PostgreSQL.<\/p>\n\n\n\n
SELECT pg_size_pretty(pg_database_size('dbname'));<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,27,15,28,16],"tags":[180,433,449,955,471,544,549,591],"yoast_head":"\nHow to Get the Size of the Database in PostgreSQL Snippet<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n