Add a comment for why we dont allow alter and undistribute table for tables with identity columns

issue/6694
Gokhan Gulbiz 2023-03-27 12:58:00 +03:00
parent 6a69ae5dee
commit d484a25891
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 5 additions and 0 deletions

View File

@ -928,6 +928,11 @@ CopyTableConversionReturnIntoCurrentContext(TableConversionReturn *tableConversi
static TableConversionReturn *
ConvertTable(TableConversionState *con)
{
/*
* We do not allow alter_distributed_table and undistribute_table operations
for tables with identity columns. This is because we do not have a proper way
of keeping sequence states consistent across the cluster.
*/
ErrorIfTableHasIdentityColumn(con->relationId);
/*