Back to Browse

8.2 Postgres Administration - Move and Drop Tablespaces

330 views
Feb 7, 2023
6:07

Move and Drop Tablespaces Postgres Administration - Tablespace #check existing tablespace select * from pg_tablespace; #create tablespace create tablespace rpt location '/opt/rpt'; #create table in non default tablespace create table reporting (id int) tablespace rpt; #check tablespace of a table select * from pg_tables where tablename='tablename'; #move table to different tablespace alter table actor set tablespace rpt; #check table filepath select * from pg_relation_filepath('actor');

Download

0 formats

No download links available.

8.2 Postgres Administration - Move and Drop Tablespaces | NatokHD