From 1d91d24d9a831be0bb90ec71934f735c52456c57 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 10 Oct 2023 07:50:15 +0200 Subject: Add const to values and nulls arguments This excludes any changes that would change the external AM APIs. Reviewed-by: Aleksander Alekseev Discussion: https://www.postgresql.org/message-id/flat/14c31f4a-0347-0805-dce8-93a9072c05a5%40eisentraut.org --- src/backend/partitioning/partbounds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/partitioning') diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index 5436cc302d1..9f207b44c37 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -4720,8 +4720,8 @@ get_range_nulltest(PartitionKey key) * Compute the hash value for given partition key values. */ uint64 -compute_partition_hash_value(int partnatts, FmgrInfo *partsupfunc, Oid *partcollation, - Datum *values, bool *isnull) +compute_partition_hash_value(int partnatts, FmgrInfo *partsupfunc, const Oid *partcollation, + const Datum *values, const bool *isnull) { int i; uint64 rowHash = 0; -- cgit v1.2.3