Plug memory leak in range_cmp function.
B-tree operators are not allowed to leak memory into the current memory
context. Range_cmp leaked detoasted copies of the arguments. That caused
a quick out-of-memory error when creating an index on a range column.
Reported by Marian Krucina, bug #8468.
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/33936752829e3c6d4c463f3c974968b225304571
Modified Files
--------------
src/backend/utils/adt/rangetypes.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)