postgres.git / summary / log / commit / refs

commit    64a628576700f9a0afc67f062e8fedf1fe6c3a57
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Sun Oct 05 06:21:45 2014 +0000
First released in: 9.0.19, 9.1.15, 9.2.10, 9.3.6

    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.


src/backend/access/gist/gist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index da045a45813..dd03b351b53 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -961,8 +961,9 @@ gistSplit(Relation r, if (len == 1) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), - errmsg("index row size %zu exceeds maximum %zu for index \"%s\"", - IndexTupleSize(itup[0]), GiSTPageSize, + errmsg("index row size %lu exceeds maximum %lu for index \"%s\"", + (unsigned long) IndexTupleSize(itup[0]), + (unsigned long) GiSTPageSize, RelationGetRelationName(r)))); memset(v.spl_lisnull, TRUE, sizeof(bool) * giststate->tupdesc->natts); [parent: b6391f587f46]