Difference between revisions of "Pg database size"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
SELECT pg_size_pretty(pg_database_size('your_db_name'));
 +
  pg_size_pretty
 +
----------------
 +
  8849 kB
 +
(1 row)
 +
 +
 
  SELECT pg_database_size('your_db_name');
 
  SELECT pg_database_size('your_db_name');
 
   pg_database_size
 
   pg_database_size
Line 5: Line 13:
 
           9061155
 
           9061155
 
  (1 row)
 
  (1 row)
 
  
 
== Related ==
 
== Related ==
 
* <code>[[du]]</code>
 
* <code>[[du]]</code>
 
  
 
== See also ==
 
== See also ==

Latest revision as of 22:30, 6 June 2022

Advertising: