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] Support DROP TABLESPACE API #6638

Closed
deeps1991 opened this issue Dec 12, 2020 · 1 comment
Closed

[YSQL] Support DROP TABLESPACE API #6638

deeps1991 opened this issue Dec 12, 2020 · 1 comment
Assignees
Labels
area/ysql Yugabyte SQL (YSQL)

Comments

@deeps1991
Copy link
Contributor

Currently Postgres checks whether a tablespace is empty by looking through the directory contents of the location associated with the tablespace. This will not be applicable for YB clusters where location is not a directory but a cloud placement policy.
Thus, when tables or indexes are associated with a Tablespace, for YB clusters, there should be an additional record in pg_depends. This dependency should be checked while trying to drop tablespaces.

@deeps1991 deeps1991 added the area/ysql Yugabyte SQL (YSQL) label Dec 12, 2020
@deeps1991 deeps1991 self-assigned this Dec 12, 2020
@deeps1991
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL)
Projects
None yet
Development

No branches or pull requests

1 participant