OSDN Git Service

Fix a crash bug on complex views when enable_hint_table is on
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 May 2017 09:43:09 +0000 (18:43 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 18 May 2017 10:52:34 +0000 (19:52 +0900)
commit48b7b15ef663232881995ce7fdba5ff31a7065e6
treea94019de15b5dd59de7935af59377b6e38a2f897
parent33df85720be71fb0e7045721aa1dce06fc2a36ba
Fix a crash bug on complex views when enable_hint_table is on

The Query that planner receives sometimes irrelevant to
debug_query_string. If enable_hint_table is on, pg_hint_plan_planner
normalizes debug_query_string using query-jumble information created
from the irrelevant Query the can lead to crash. To avoid this
situation, retrieve hints in post_parse_analyze_hook, where
corresponding pairs of a query string and a parsed Query.
pg_hint_plan.c