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
We currently automate transaction table creation by attempting to create one when a table is created under a tablespace with placement information, but this can result in there being a tablespace with tables without a transaction table, if no tables were ever created under the tablespace, and tables were altered to be under the tablespace only. There should be a hook for the ALTER TABLE SET TABLESPACE path to attempt to create the transaction table as well.
The text was updated successfully, but these errors were encountered:
… update
Summary:
Changed the tablespace update procedure to start transaction table creation for tablespaces
which have placements set and at least one table in them (to account for tablespaces with bad
placements). This should handle both tablespaces from previous versions with no associated transaction
table, and tablespaces whose first table was through ALTER TABLE SET TABLESPACE. The transaction
table creation hook in CreateTable is left in as an optimization.
Test Plan: `ybd --cxx-test pgwrapper_geo_transactions-test --gtest_filter GeoTransactionsTest.TestAutomaticLocalTransactionTableCreationWithAlter`
Reviewers: dsrinivasan
Reviewed By: dsrinivasan
Subscribers: rthallam, bogdan, ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D15601
…blespace update
Summary:
Changed the tablespace update procedure to start transaction table creation for tablespaces
which have placements set and at least one table in them (to account for tablespaces with bad
placements). This should handle both tablespaces from previous versions with no associated transaction
table, and tablespaces whose first table was through ALTER TABLE SET TABLESPACE. The transaction
table creation hook in CreateTable is left in as an optimization.
Test Plan: `ybd --cxx-test pgwrapper_geo_transactions-test --gtest_filter GeoTransactionsTest.TestAutomaticLocalTransactionTableCreationWithAlter`
Reviewers: dsrinivasan
Reviewed By: dsrinivasan
Subscribers: rthallam, bogdan, ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D15601
Description
Context: #9980, #10783
We currently automate transaction table creation by attempting to create one when a table is created under a tablespace with placement information, but this can result in there being a tablespace with tables without a transaction table, if no tables were ever created under the tablespace, and tables were altered to be under the tablespace only. There should be a hook for the ALTER TABLE SET TABLESPACE path to attempt to create the transaction table as well.
The text was updated successfully, but these errors were encountered: