Move database to new tablespace in postgres
Imported guide
postgresql configurationintermediate
by PostgreSQL
15 views
Imported guide
1234567
postgres=#
alter database prod_crm set tablespace crm_tblspc;
Before running this. make sure there are no active connections in the database.
You can kill the existing session using below query.
postgres#
select pg_terminate_backend(pid) from pg_stat_activity where datname='DB_NAME';Please to add comments
No comments yet. Be the first to comment!