@@ -7847,6 +7847,7 @@ SetIndexStorageProperties(Relation rel, Relation attrelation,
7847
7847
index_close(indrel, lockmode);
7848
7848
}
7849
7849
}
7850
+
7850
7851
/*
7851
7852
* ALTER TABLE ALTER COLUMN SET STORAGE
7852
7853
*
@@ -15070,7 +15071,7 @@ ATExecSetCompression(AlteredTableInfo *tab,
15070
15071
AttrNumber attnum;
15071
15072
char *compression;
15072
15073
char typstorage;
15073
- Oid cmoid ;
15074
+ char cmethod ;
15074
15075
ObjectAddress address;
15075
15076
15076
15077
Assert(IsA(newValue, String));
@@ -15104,10 +15105,10 @@ ATExecSetCompression(AlteredTableInfo *tab,
15104
15105
format_type_be(atttableform->atttypid))));
15105
15106
15106
15107
/* get the attribute compression method. */
15107
- cmoid = GetAttributeCompression(atttableform, compression);
15108
+ cmethod = GetAttributeCompression(atttableform, compression);
15108
15109
15109
15110
/* update pg_attribute entry */
15110
- atttableform->attcompression = cmoid ;
15111
+ atttableform->attcompression = cmethod ;
15111
15112
CatalogTupleUpdate(attrel, &tuple->t_self, tuple);
15112
15113
15113
15114
InvokeObjectPostAlterHook(RelationRelationId,
@@ -15118,7 +15119,7 @@ ATExecSetCompression(AlteredTableInfo *tab,
15118
15119
* Apply the change to indexes as well (only for simple index columns,
15119
15120
* matching behavior of index.c ConstructTupleDescriptor()).
15120
15121
*/
15121
- SetIndexStorageProperties(rel, attrel, attnum, cmoid , '\0', lockmode);
15122
+ SetIndexStorageProperties(rel, attrel, attnum, cmethod , '\0', lockmode);
15122
15123
15123
15124
heap_freetuple(tuple);
15124
15125
0 commit comments