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
In colocated tablet, drop table should delete the rows for the table being deleted. (This can be done by adding a delete marker for the cotableid).
Drop database should delete the table for the DB.
The text was updated successfully, but these errors were encountered:
Summary:
Currently, table colocation is supported for the create flow: `CREATE
DATABASE`, `CREATE TABLE`, and `CREATE INDEX` including opt-out. Work
on supporting the drop flow.
* Add support for `DROP DATABASE` on colocated databases.
* Add support for `DROP TABLE` on colocated tables with the caveat that
data for the table does not get deleted. In the meantime, to work
around this issue, execute `DELETE FROM <table>` before `DROP TABLE
<table>`.
* Omit support for `TRUNCATE`. For now, executing `TRUNCATE` on a
colocated table will delete **all data** (including those of other
tables) from its parent tablet.
* Update tests.
Test Plan:
* `./yb_build.sh --cxx-test pg_libpq-test --gtest_filter
PgLibPqTest.TableColocation`
* `./yb_build.sh --java-test org.yb.pgsql.TestPgRegressBetaFeatures`
Reviewers: neha
Reviewed By: neha
Subscribers: yql, bogdan
Differential Revision: https://phabricator.dev.yugabyte.com/D7737
Commit 306f53b adds basic support for the drop flow without handling data deletion and without supporting TRUNCATE. Push the rest of the data deletion tasks into separate issues:
In colocated tablet, drop table should delete the rows for the table being deleted. (This can be done by adding a delete marker for the cotableid).
Drop database should delete the table for the DB.
The text was updated successfully, but these errors were encountered: