Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 318b1c0

Browse files
committed
Fix incorrect format placeholders
1 parent 4fc5381 commit 318b1c0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/backend/statistics/dependencies.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ statext_dependencies_deserialize(bytea *data)
509509
return NULL;
510510

511511
if (VARSIZE_ANY_EXHDR(data) < SizeOfHeader)
512-
elog(ERROR, "invalid MVDependencies size %zd (expected at least %zd)",
512+
elog(ERROR, "invalid MVDependencies size %zu (expected at least %zu)",
513513
VARSIZE_ANY_EXHDR(data), SizeOfHeader);
514514

515515
/* read the MVDependencies header */
@@ -541,7 +541,7 @@ statext_dependencies_deserialize(bytea *data)
541541
min_expected_size = SizeOfItem(dependencies->ndeps);
542542

543543
if (VARSIZE_ANY_EXHDR(data) < min_expected_size)
544-
elog(ERROR, "invalid dependencies size %zd (expected at least %zd)",
544+
elog(ERROR, "invalid dependencies size %zu (expected at least %zu)",
545545
VARSIZE_ANY_EXHDR(data), min_expected_size);
546546

547547
/* allocate space for the MCV items */

src/backend/statistics/mcv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ statext_mcv_deserialize(bytea *data)
10321032
* header fields one by one, so we need to ignore struct alignment.
10331033
*/
10341034
if (VARSIZE_ANY(data) < MinSizeOfMCVList)
1035-
elog(ERROR, "invalid MCV size %zd (expected at least %zu)",
1035+
elog(ERROR, "invalid MCV size %zu (expected at least %zu)",
10361036
VARSIZE_ANY(data), MinSizeOfMCVList);
10371037

10381038
/* read the MCV list header */
@@ -1093,7 +1093,7 @@ statext_mcv_deserialize(bytea *data)
10931093
* to do this check first, before accessing the dimension info.
10941094
*/
10951095
if (VARSIZE_ANY(data) < expected_size)
1096-
elog(ERROR, "invalid MCV size %zd (expected %zu)",
1096+
elog(ERROR, "invalid MCV size %zu (expected %zu)",
10971097
VARSIZE_ANY(data), expected_size);
10981098

10991099
/* Now copy the array of type Oids. */
@@ -1125,7 +1125,7 @@ statext_mcv_deserialize(bytea *data)
11251125
* check on size.
11261126
*/
11271127
if (VARSIZE_ANY(data) != expected_size)
1128-
elog(ERROR, "invalid MCV size %zd (expected %zu)",
1128+
elog(ERROR, "invalid MCV size %zu (expected %zu)",
11291129
VARSIZE_ANY(data), expected_size);
11301130

11311131
/*

src/backend/statistics/mvdistinct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ statext_ndistinct_deserialize(bytea *data)
261261

262262
/* we expect at least the basic fields of MVNDistinct struct */
263263
if (VARSIZE_ANY_EXHDR(data) < SizeOfHeader)
264-
elog(ERROR, "invalid MVNDistinct size %zd (expected at least %zd)",
264+
elog(ERROR, "invalid MVNDistinct size %zu (expected at least %zu)",
265265
VARSIZE_ANY_EXHDR(data), SizeOfHeader);
266266

267267
/* initialize pointer to the data part (skip the varlena header) */
@@ -287,7 +287,7 @@ statext_ndistinct_deserialize(bytea *data)
287287
/* what minimum bytea size do we expect for those parameters */
288288
minimum_size = MinSizeOfItems(ndist.nitems);
289289
if (VARSIZE_ANY_EXHDR(data) < minimum_size)
290-
elog(ERROR, "invalid MVNDistinct size %zd (expected at least %zd)",
290+
elog(ERROR, "invalid MVNDistinct size %zu (expected at least %zu)",
291291
VARSIZE_ANY_EXHDR(data), minimum_size);
292292

293293
/*

0 commit comments

Comments
 (0)