OSDN Git Service

Fix a bug that index restriction by name doesn't work for UPDATEs on
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 17 Sep 2014 08:13:57 +0000 (17:13 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 Sep 2014 02:40:14 +0000 (11:40 +0900)
commitc02999d010f594fec0ecd595a71910d11a3c023e
treec84a69e4f08752572db981a973b1e0f6329be9b1
parent431989233a970f5f9701f3dcd9f1894ce43d57c5
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