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:51:48 +0000 (19:51 +0900)
commit89149ce1dc59c07f7bc46e80cddf90cc724649d1
tree656c1a2bdd42b833072a14dcb5357bc1ddcdf0e2
parent90e4bf123af9773f971ef703e6ca4956804630dd
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