View tablespace info in postgres
VIEW TABLESPACE INFO IN POSTGRES:
postgresql configurationintermediate
by PostgreSQL
14 views
VIEW TABLESPACE INFO IN POSTGRES:
123456789101112131415
postgres=#
select * from pg_tablespace;
(OR)
postgres=#
\db+
(or)
postgres=#
select pg_size_pretty(pg_tablespace_size('ts_dbaclass'));
pg_size_pretty
----------------
96 bytes
(1 row)
Pre-configured tablespaces:( these are default tablespaces)
Pg_global - > PGDATA/global - > used for cluster wide table and system catalog
Pg_default - > PGDATA/base directory - > it stores databases and relationsPlease to add comments
No comments yet. Be the first to comment!