How to move a tablespace to new directory in postgres - DBACLASS DBACLASS
Below are the steps for moving a tablespace to a new file system/mount point in postgres. EXAMPLE: TABLESPACE_NAME – > proddb_ts TABLESPACE_OID – 19847 NEW MOUNT POINT – > /new_fs/data 1. Get the tablespace details and existing path: postgres=# <strong>select * from pg_tablespace; </strong> oid | spcname | spcowner | spcacl | spcoptions -------+------------+----------+-----------------------------
postgresql configurationintermediate
by PostgreSQL
14 views