From 318b1c0cc1660c51c06a716de5d36367afa2499e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 24 Feb 2023 08:02:48 +0100 Subject: [PATCH] Fix incorrect format placeholders --- src/backend/statistics/dependencies.c | 4 ++-- src/backend/statistics/mcv.c | 6 +++--- src/backend/statistics/mvdistinct.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c index e6e2835345..a156756b4e 100644 --- a/src/backend/statistics/dependencies.c +++ b/src/backend/statistics/dependencies.c @@ -509,7 +509,7 @@ statext_dependencies_deserialize(bytea *data) return NULL; if (VARSIZE_ANY_EXHDR(data) < SizeOfHeader) - elog(ERROR, "invalid MVDependencies size %zd (expected at least %zd)", + elog(ERROR, "invalid MVDependencies size %zu (expected at least %zu)", VARSIZE_ANY_EXHDR(data), SizeOfHeader); /* read the MVDependencies header */ @@ -541,7 +541,7 @@ statext_dependencies_deserialize(bytea *data) min_expected_size = SizeOfItem(dependencies->ndeps); if (VARSIZE_ANY_EXHDR(data) < min_expected_size) - elog(ERROR, "invalid dependencies size %zd (expected at least %zd)", + elog(ERROR, "invalid dependencies size %zu (expected at least %zu)", VARSIZE_ANY_EXHDR(data), min_expected_size); /* allocate space for the MCV items */ diff --git a/src/backend/statistics/mcv.c b/src/backend/statistics/mcv.c index e21e0e87e4..03b9f04bb5 100644 --- a/src/backend/statistics/mcv.c +++ b/src/backend/statistics/mcv.c @@ -1032,7 +1032,7 @@ statext_mcv_deserialize(bytea *data) * header fields one by one, so we need to ignore struct alignment. */ if (VARSIZE_ANY(data) < MinSizeOfMCVList) - elog(ERROR, "invalid MCV size %zd (expected at least %zu)", + elog(ERROR, "invalid MCV size %zu (expected at least %zu)", VARSIZE_ANY(data), MinSizeOfMCVList); /* read the MCV list header */ @@ -1093,7 +1093,7 @@ statext_mcv_deserialize(bytea *data) * to do this check first, before accessing the dimension info. */ if (VARSIZE_ANY(data) < expected_size) - elog(ERROR, "invalid MCV size %zd (expected %zu)", + elog(ERROR, "invalid MCV size %zu (expected %zu)", VARSIZE_ANY(data), expected_size); /* Now copy the array of type Oids. */ @@ -1125,7 +1125,7 @@ statext_mcv_deserialize(bytea *data) * check on size. */ if (VARSIZE_ANY(data) != expected_size) - elog(ERROR, "invalid MCV size %zd (expected %zu)", + elog(ERROR, "invalid MCV size %zu (expected %zu)", VARSIZE_ANY(data), expected_size); /* diff --git a/src/backend/statistics/mvdistinct.c b/src/backend/statistics/mvdistinct.c index df5cc3e13a..6d25c14644 100644 --- a/src/backend/statistics/mvdistinct.c +++ b/src/backend/statistics/mvdistinct.c @@ -261,7 +261,7 @@ statext_ndistinct_deserialize(bytea *data) /* we expect at least the basic fields of MVNDistinct struct */ if (VARSIZE_ANY_EXHDR(data) < SizeOfHeader) - elog(ERROR, "invalid MVNDistinct size %zd (expected at least %zd)", + elog(ERROR, "invalid MVNDistinct size %zu (expected at least %zu)", VARSIZE_ANY_EXHDR(data), SizeOfHeader); /* initialize pointer to the data part (skip the varlena header) */ @@ -287,7 +287,7 @@ statext_ndistinct_deserialize(bytea *data) /* what minimum bytea size do we expect for those parameters */ minimum_size = MinSizeOfItems(ndist.nitems); if (VARSIZE_ANY_EXHDR(data) < minimum_size) - elog(ERROR, "invalid MVNDistinct size %zd (expected at least %zd)", + elog(ERROR, "invalid MVNDistinct size %zu (expected at least %zu)", VARSIZE_ANY_EXHDR(data), minimum_size); /*