|
|
@ -11953,8 +11953,6 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel, |
|
|
|
attTup->attalign = tform->typalign; |
|
|
|
attTup->attalign = tform->typalign; |
|
|
|
attTup->attstorage = tform->typstorage; |
|
|
|
attTup->attstorage = tform->typstorage; |
|
|
|
|
|
|
|
|
|
|
|
ReleaseSysCache(typeTuple); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Setup attribute compression */ |
|
|
|
/* Setup attribute compression */ |
|
|
|
if (rel->rd_rel->relkind == RELKIND_RELATION || |
|
|
|
if (rel->rd_rel->relkind == RELKIND_RELATION || |
|
|
|
rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE) |
|
|
|
rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE) |
|
|
@ -11972,6 +11970,8 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel, |
|
|
|
else |
|
|
|
else |
|
|
|
attTup->attcompression = InvalidCompressionMethod; |
|
|
|
attTup->attcompression = InvalidCompressionMethod; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ReleaseSysCache(typeTuple); |
|
|
|
|
|
|
|
|
|
|
|
CatalogTupleUpdate(attrelation, &heapTup->t_self, heapTup); |
|
|
|
CatalogTupleUpdate(attrelation, &heapTup->t_self, heapTup); |
|
|
|
|
|
|
|
|
|
|
|
table_close(attrelation, RowExclusiveLock); |
|
|
|
table_close(attrelation, RowExclusiveLock); |
|
|
|