mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
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.
This commit is contained in:
parent
c66199151c
commit
3cd085ee25
@ -1278,8 +1278,9 @@ gistSplit(Relation r,
|
|||||||
if (len == 1)
|
if (len == 1)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
||||||
errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
|
errmsg("index row size %lu exceeds maximum %lu for index \"%s\"",
|
||||||
IndexTupleSize(itup[0]), GiSTPageSize,
|
(unsigned long) IndexTupleSize(itup[0]),
|
||||||
|
(unsigned long) GiSTPageSize,
|
||||||
RelationGetRelationName(r))));
|
RelationGetRelationName(r))));
|
||||||
|
|
||||||
memset(v.spl_lisnull, TRUE, sizeof(bool) * giststate->tupdesc->natts);
|
memset(v.spl_lisnull, TRUE, sizeof(bool) * giststate->tupdesc->natts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user