Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importccl: allow changes to referencing set or privileges on UDT
In cockroachdb#69674 we enabled importing of tables which used UDTs. We added the caveat that these types must not change during the import. In cockroachdb#70987, @ajstorm uncovered that adding new usages of the type cause an illegal change. This is a particularly painful limitation as all regional by row tables will use the enum type of the database. That makes the limitation of import much more extreme than just precluding renames or modifications of enums or their members. To fix this limitation, we permit changes to the referencing set which occur during the import. We also permit changes to privileges as they won't impact the correctness of the import. Relates to cockroachdb#69706 Fixes cockroachdb#70987 Release note (enterprise change): Fixed a limitation of IMPORT for tables using user-defined types whereby any change to the set of tables or views which reference the type or any changes to privileges on the type during the IMPORT would lead to failure. Now new references to the type or GRANT or REVOKE operations performed while the IMPORT is ongoing will not cause failure.
- Loading branch information