diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-05 09:21:45 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-05 09:56:51 +0300 |
commit | 0fb250dae751c6b8f6f3587cdb610b180fb7125a (patch) | |
tree | d21e8a9605a00eac09b5ec2e8026c6ad330a84fe | |
parent | 8f75d7a25ac59c8687abb45140ca6de02b32de4f (diff) |
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.
-rw-r--r-- | src/backend/access/gist/gist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 97eee905aac..7dc4fc1cba5 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -1268,8 +1268,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); |