OSDN Git Service

check_exclusion_constraint didn't actually work correctly for index
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Jan 2010 17:53:57 +0000 (17:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Jan 2010 17:53:57 +0000 (17:53 +0000)
commit2b59274c0925ca980748edf57723f3c3e026f619
tree28936ebb570052fcf84879aff813bbeedf36af84
parent0239800893ef4901e3c085e06534934a485d3bf0
check_exclusion_constraint didn't actually work correctly for index
expressions: FormIndexDatum requires the estate's scantuple to already point
at the tuple the values are supposedly being extracted from.  Adjust test
case so that this type of confusion will be exposed.
Per report from hubert depesz lubaczewski.
src/backend/executor/execUtils.c
src/test/regress/input/constraints.source
src/test/regress/output/constraints.source