Content-Length: 261493 | pFad | http://github.com/postgrespro/postgres/commit/525510aea55e7c1259de6853555534559110ca50

76 Cannot rely on %z printf length modifier. · postgrespro/postgres@525510a · GitHub
Skip to content

Commit 525510a

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 745723c commit 525510a

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
@@ -1408,8 +1408,9 @@ gistSplit(Relation r,
14081408
if (len == 1)
14091409
ereport(ERROR,
14101410
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
1411-
errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
1412-
IndexTupleSize(itup[0]), GiSTPageSize,
1411+
errmsg("index row size %lu exceeds maximum %lu for index \"%s\"",
1412+
(unsigned long) IndexTupleSize(itup[0]),
1413+
(unsigned long) GiSTPageSize,
14131414
RelationGetRelationName(r))));
14141415

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/525510aea55e7c1259de6853555534559110ca50

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy