OSDN Git Service

Fix a bug that index restriction by name doesn't work for UPDATEs on REL93_1_1_1
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 17 Sep 2014 08:03:01 +0000 (17:03 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 Sep 2014 02:43:47 +0000 (11:43 +0900)
commit2990c5918903889cf281b87cd4f874548c0120b7
tree423ad49eccf5c5d4b7f9657f468831fea9650232
parented6890a147993c53e54db185840771d20137b96b
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