projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f75d7a
)
Cannot rely on %z printf length modifier.
author
Heikki Linnakangas
<
[email protected]
>
Sun, 5 Oct 2014 06:21:45 +0000
(09:21 +0300)
committer
Heikki Linnakangas
<
[email protected]
>
Sun, 5 Oct 2014 06:56:51 +0000
(09:56 +0300)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/gist/gist.c
b/src/backend/access/gist/gist.c
index 97eee905aac80d27dbc5082ccaccd51d3d2f910b..7dc4fc1cba53341300dbdff9d2016fd9879cba9e 100644
(file)
--- 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);