diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-25 17:44:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-25 17:44:47 +0000 |
commit | bb6e270ae31e25d8a7d43056cffadfc061f61a12 (patch) | |
tree | e20adfc5231c6e44de758ff37689e26adde6863d /src/backend/executor/nodeMergejoin.c | |
parent | 0870648c2f049f7c3979dba9fbfdfda5f1c54dc6 (diff) | |
download | postgresql-bb6e270ae31e25d8a7d43056cffadfc061f61a12.tar.gz postgresql-bb6e270ae31e25d8a7d43056cffadfc061f61a12.zip |
Fix oversight in construction of sort/unique plans for UniquePaths.
If the original IN operator is cross-type, for example int8 = int4,
we need to use int4 < int4 to sort the inner data and int4 = int4
to unique-ify it. We got the first part of that right, but tried to
use the original IN operator for the equality checks. Per bug #5472
from Vlad Romascanu.
Backpatch to 8.4, where the bug was introduced by the patch that unified
SortClause and GroupClause. I was able to take out a whole lot of on-the-fly
calls of get_equality_op_for_ordering_op(), but failed to realize that
I needed to put one back in right here :-(
Diffstat (limited to 'src/backend/executor/nodeMergejoin.c')
0 files changed, 0 insertions, 0 deletions