Re: remove tablespace for primary key (*not* by drop/recreate constraint) - Mailing list pgsql-sql

From Emi Lu
Subject Re: remove tablespace for primary key (*not* by drop/recreate constraint)
Date
Msg-id 55709A8A.7010005@encs.concordia.ca
Whole thread
In response to Re: remove tablespace for primary key (*not* by drop/recreate constraint)  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: remove tablespace for primary key (*not* by drop/recreate constraint)
Re: remove tablespace for primary key (*not* by drop/recreate constraint)
List pgsql-sql
Hello, 
to remove tablespace for primary key please?

For example, z1 (c1 text) with pk_z1 PRIMARY KEY (c1), tablespace "abc"

May I know how to remove tablespace(set tablespace to empty for z1)?

​ It doesn't make sense to "remove" a tablespace...the best you can do is change a table's (and its related indexes) tablespace
 
​ from one to another.

If "ALTER TABLE ... SET TABLESPACE ..." doesn't accomplish your goal you will need to explain yourself better.

Want to SET tablespace = '' for primary key but not table. Tried alter index ... set tablespace='', but empty does not work?

Thanks

pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: remove tablespace for primary key (*not* by drop/recreate constraint)
Next
From: Adrian Klaver
Date:
Subject: Re: remove tablespace for primary key (*not* by drop/recreate constraint)