Add some const decorations
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Aug 2023 06:30:45 +0000 (08:30 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Aug 2023 06:30:45 +0000 (08:30 +0200)
Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org

src/backend/commands/tablecmds.c

index 47c900445c7a782330cafc4340b7026ebdab8248..2ac6f8b334f75ccd78e9fa8c732eae488811e8e0 100644 (file)
@@ -648,7 +648,7 @@ static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx,
 static void verifyPartitionIndexNotNull(IndexInfo *iinfo, Relation partIdx);
 static List *GetParentedForeignKeyRefs(Relation partition);
 static void ATDetachCheckNoForeignKeyRefs(Relation partition);
-static char GetAttributeCompression(Oid atttypid, char *compression);
+static char GetAttributeCompression(Oid atttypid, const char *compression);
 static char GetAttributeStorage(Oid atttypid, const char *storagemode);
 
 
@@ -20094,7 +20094,7 @@ ATDetachCheckNoForeignKeyRefs(Relation partition)
  * resolve column compression specification to compression method.
  */
 static char
-GetAttributeCompression(Oid atttypid, char *compression)
+GetAttributeCompression(Oid atttypid, const char *compression)
 {
        char            cmethod;