From: Peter Eisentraut Date: Tue, 29 Aug 2023 06:30:45 +0000 (+0200) Subject: Add some const decorations X-Git-Tag: REL_17_BETA1~1949 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b088c8e4a2c9879d2f37fa4b38ae925184cea64;p=thirdparty%2Fpostgresql.git Add some const decorations Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org --- diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 47c900445c7..2ac6f8b334f 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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;