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:49:37 +0000 (19:49 +0900)
commit64ab47bcc87274380ea50d22d0184e659751ad66
treeac33ccd28cb41574f4025d622652c29d13c68619
parent471a198c618fc86686374ea1f8a4c6aaaecdc7d9
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