You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, there is no way to set tablespace for Unique indexes:
yugabyte=# CREATE TABLE mytable (id int, UNIQUE(id) USING INDEX TABLESPACE mytablespace);
ERROR: USING INDEX TABLESPACE not supported yet
LINE 1: CREATE TABLE mytable (id int, UNIQUE(id) USING INDEX TABLESP...
^
HINT: See https://github.com/YugaByte/yugabyte-db/issues/1129. Click '+' on the description to raise its priority
Note that this should still not be allowed for primary key index, which is an intrinsic part of the table itself, and should never be associated with a tablespace different from the indexed table.
The text was updated successfully, but these errors were encountered:
Summary:
Added support for the "USING INDEX TABLESPACE" clause. This will
allow setting tablespace for unique indexes. However, since the primary
key index is an intrinsic part of the table itself, it cannot have
a separate tablespace (it should have the same tablespace as that of
the table). Thus we throw a syntax error if there is an attempt to set
tablespace for a primary key index using the "USING INDEX TABLESPACE"
clause.
Test Plan:
ybd --scb --sj --java-test org.yb.pgsql.TestTablespaceProperties
ybd --scb --sj --java-test org.yb.pgsql.TestPgRegressTablespaces
Reviewers: mihnea
Reviewed By: mihnea
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D11533
Today, there is no way to set tablespace for Unique indexes:
Note that this should still not be allowed for primary key index, which is an intrinsic part of the table itself, and should never be associated with a tablespace different from the indexed table.
The text was updated successfully, but these errors were encountered: