Skip to content

Commit 3cd085e

Browse files
committed
Cannot rely on %z printf length modifier.
Before version 9.4, we didn't require sprintf to support the %z length modifier. Use %lu instead. Reported by Peter Eisentraut. Apply to 9.3 and earlier.
1 parent c661991 commit 3cd085e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/gist/gist.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,8 +1278,9 @@ gistSplit(Relation r,
12781278
if (len == 1)
12791279
ereport(ERROR,
12801280
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
1281-
errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
1282-
IndexTupleSize(itup[0]), GiSTPageSize,
1281+
errmsg("index row size %lu exceeds maximum %lu for index \"%s\"",
1282+
(unsigned long) IndexTupleSize(itup[0]),
1283+
(unsigned long) GiSTPageSize,
12831284
RelationGetRelationName(r))));
12841285

12851286
memset(v.spl_lisnull, TRUE, sizeof(bool) * giststate->tupdesc->natts);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy