aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-10-05 09:21:45 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-10-05 09:56:58 +0300
commit525510aea55e7c1259de6853555534559110ca50 (patch)
tree9be8a1d41144abe83383f77d8c0774f5c8638c57 /src/backend/access/gist/gist.c
parent745723c9effb1365f8178e5d6b358c5a76fc6825 (diff)
downloadpostgresql-525510aea55e7c1259de6853555534559110ca50.tar.gz
postgresql-525510aea55e7c1259de6853555534559110ca50.zip
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 2c537e138c2..7d3c8203f7d 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -1408,8 +1408,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);