Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YSQL] CREATE DATABASE ... TABLESPACE ...; not supported #9870

Open
radekg opened this issue Aug 30, 2021 · 1 comment
Open

[YSQL] CREATE DATABASE ... TABLESPACE ...; not supported #9870

radekg opened this issue Aug 30, 2021 · 1 comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue

Comments

@radekg
Copy link
Contributor

radekg commented Aug 30, 2021

Jira Link: DB-4791
I'm using a version 2.7.2 and I have the following:

yugabyte=# create tablespace space_tenant1
yugabyte-#   with (replica_placement='{"num_replicas": 3, "placement_blocks": [
yugabyte'#     {"cloud":"dsh","region":"tenant1","zone":"tenant1a", "min_num_replicas":1},
yugabyte'#     {"cloud":"dsh","region":"tenant1","zone":"tenant1b", "min_num_replicas":1},
yugabyte'#     {"cloud":"dsh","region":"tenant1","zone":"tenant1c", "min_num_replicas":1}]}');
CREATE TABLESPACE
yugabyte=# create table aaa (rowid int) tablespace space_tenant1;
CREATE TABLE

but

yugabyte=# create database tenant1db OWNER tenant1 TABLESPACE space_tenant1;
ERROR:  Value other than default for tablespace option is not yet supported
LINE 1: create database tenant1db OWNER tenant1 TABLESPACE space_ten...
                                                ^
HINT:  Please report the issue on https://github.com/YugaByte/yugabyte-db/issues

My question is: should this be supported and it's an omission from enabling the tablespaces feature or is there a reason why this option is explicitly not supported?

@rthallamko3 rthallamko3 added the area/ysql Yugabyte SQL (YSQL) label Jan 3, 2023
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jan 3, 2023
@yugabyte-ci yugabyte-ci added status/awaiting-triage Issue awaiting triage kind/enhancement This is an enhancement of an existing feature and removed status/awaiting-triage Issue awaiting triage kind/bug This issue is a bug labels Jan 17, 2023
@ddorian
Copy link
Contributor

ddorian commented Jan 18, 2024

An alternative for now is using ALTER DATABASE set default_tablespace='' https://yugabytedb.tips/?p=3537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue
Projects
Status: No status
Development

No branches or pull requests

4 participants