Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgresql check total storage

SELECT nspname || '.' || relname AS "relation",
    pg_size_pretty(pg_relation_size(C.oid)) AS "size"
  FROM pg_class C
  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
  WHERE nspname NOT IN ('pg_catalog', 'information_schema')
  ORDER BY pg_relation_size(C.oid) DESC
  LIMIT 20;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql dump with table query 
Sql :: sql delimiter to columns 
Sql :: date sql 
Sql :: mysql max 
Sql :: is sql fast 
Sql :: postgre insert select 
Sql :: get initials name in sql 
Sql :: mysql loop 
Sql :: default password for mysql_secure_installation in mac 
Sql :: /bin/sh: 1: mysql_config: not found 
Sql :: all tables and views oracle 
Sql :: delete rows from table sql 
Sql :: mysql case when in select 
Sql :: exec procedure oracle 
Sql :: eliminar ultimo carcacter mysql 
Sql :: Selecting duplicates 
Sql :: postgres how to add field created at 
Sql :: sql inserted 
Sql :: date get month number sql 
Sql :: SQL BACKUP DATABASE for SQL Server 
Sql :: How to find string in substring in sql server 
Sql :: smallint sql 
Sql :: update table sql multiple set 
Sql :: sql if null then string 
Sql :: show tablespace oracle 
Sql :: implode in sql query 
Sql :: psql check tables command 
Sql :: restore backup "text" postgresql command line 
Sql :: close external port 3306 with iptables 
Sql :: export mysql database command line 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =