OSDN Git Service

Fix a bug that index restriction by name doesn't work for UPDATEs on REL92_1_1_1
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 17 Sep 2014 07:27:26 +0000 (16:27 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 Sep 2014 02:58:11 +0000 (11:58 +0900)
commita284f79d3f9a0ea76c74d15e42f13704a7db089e
tree5e2384d9e94e768e7f877dc8fe6bab4a900f8426
parentd84beebd39ddb29f0a6abec5868f9dd9f25a9944
Fix a bug that index restriction by name doesn't work for UPDATEs on
inheritance parent.

Inheritance planner doesn't claim for the inheritance parent relation,
so pg_hint_plan_get_relation_info cannot have the chance to prepare
the index spec information for chlid relations. This change make the
function to try to find parent relation even if it is called for the
children with inhparent == false from the first.
expected/ut-S.out
pg_hint_plan.c
sql/ut-S.sql