agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@aklaver.com>
To: emilu@encs.concordia.ca
To: pgsql-sql@postgresql.org
Subject: Re: remove tablespace for primary key (*not* by drop/recreate constraint)
Date: Thu, 04 Jun 2015 11:50:37 -0700
Message-ID: <55709DFD.9050302@aklaver.com> (raw)
In-Reply-To: <55709A8A.7010005@encs.concordia.ca>
References: <55707FAA.8060204@encs.concordia.ca>
<CAKFQuwaCfLjPv1UxfpkQUgN1Fh1AuZS=nHWXWKX5t-=U+9qfBg@mail.gmail.com>
<55709A8A.7010005@encs.concordia.ca>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 06/04/2015 11:35 AM, Emi Lu wrote:
> 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?
set tablespace pg_default
>
> Thanks
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (11+ messages) latest in thread
Message-ID: <55709DFD.9050302@aklaver.com>
Permalink: ../55709DFD.9050302@aklaver.com/
Also on: postgresql.org/message-id/55709DFD.9050302@aklaver.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: adrian.klaver@aklaver.com, emilu@encs.concordia.ca
Subject: Re: remove tablespace for primary key (*not* by drop/recreate constraint)
In-Reply-To: <55709DFD.9050302@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox