1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-19 13:42:17 +03:00

Fix incorrect format placeholders

This commit is contained in:
Peter Eisentraut
2023-02-24 08:02:48 +01:00
parent 4fc53819a4
commit 318b1c0cc1
3 changed files with 7 additions and 7 deletions

View File

@@ -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);
/*