Directly associate primary key with user-defined tablespace - Mailing list pgsql-hackers

From MichaelDBA
Subject Directly associate primary key with user-defined tablespace
Date
Msg-id bcd5606e-3949-1551-4130-c1994e635ac3@sqlexec.com
Whole thread Raw
List pgsql-hackers
Hi all!

PG by default always creates the primary key in the default tablespace unless you specify it to use an index that is defined in a user-defined tablespace.

We can create indexes in user-defined tablespaces, why can't we create  a primary key in a user-defined tablespace without having to associate it with an index? Something like:
ALTER TABLE myschema.mytable ADD PRIMARY KEY (akey) tablespace mytablespace;

Regards,

Michael Vitale

 


pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: moving extraUpdatedCols out of RangeTblEntry (into ModifyTable)
Next
From: Amit Langote
Date:
Subject: Re: moving extraUpdatedCols out of RangeTblEntry (into ModifyTable)