Fix several datatype input functions that were allowing unused bytes in their
results to contain uninitialized, unpredictable values. While this was okay
as far as the datatypes themselves were concerned, it's a problem for the
parser because occurrences of the "same" literal might not be recognized as
equal by datumIsEqual (and hence not by equal()). It seems sufficient to fix
this in the input functions since the only critical use of equal() is in the
parser's comparisons of ORDER BY and DISTINCT expressions.
Per a trouble report from Marc Cousin.
Patch all the way back. Interestingly, array_in did not have the bug before
8.2, which may explain why the issue went unnoticed for so long.
ltree_io.c (r1.14 -> r1.15)
arrayfuncs.c (r1.142 -> r1.143)
geo_ops.c (r1.99 -> r1.100)
tsquery.c (r1.16 -> r1.17)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2008-04-11 22:52:17|
|Subject: pgsql: Fix several datatype input functions that were allowing unused |
|Previous:||From: Bruce Momjian||Date: 2008-04-11 19:51:04|
|Subject: Re: pgsql: Changed TODO wording: < * Support
procedures, which return no|