OSDN Git Service

Fix a bug that index restriction by name doesn't work for UPDATEs on REL91_1_1_1
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 17 Sep 2014 07:52:45 +0000 (16:52 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 Sep 2014 02:59:59 +0000 (11:59 +0900)
commit4600e5e5a3ebe1cd6fc4385e6f003bfad87e3842
treef068057e29adededc845882961eb01ddd35b97fd
parent890dc402187cbebdc2a49ea2ef8d728c8a70c65c
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-9.1.out
pg_hint_plan.c
sql/ut-S.sql