summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-02-24 07:02:48 +0000
committerPeter Eisentraut2023-02-24 07:02:48 +0000
commit318b1c0cc1660c51c06a716de5d36367afa2499e (patch)
tree0b741e196f44f57c7cfb3523b9cdf77bbc7343d3
parent4fc53819a45fe6e7233a69bb279557b2070dcc40 (diff)
Fix incorrect format placeholders
-rw-r--r--src/backend/statistics/dependencies.c4
-rw-r--r--src/backend/statistics/mcv.c6
-rw-r--r--src/backend/statistics/mvdistinct.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c
index e6e2835345e..a156756b4e1 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 e21e0e87e41..03b9f04bb56 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 df5cc3e13a7..6d25c14644a 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);
/*