OSDN Git Service

Support prepared statements on extended protocol
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Mon, 7 Jan 2019 08:01:32 +0000 (17:01 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Mon, 7 Jan 2019 10:07:10 +0000 (19:07 +0900)
commitc36270588d9a4d7be0fce752a9eb63fb0f35d5a8
tree353e01a7d4ccd58baf01d42f5c79ec867b9df53b
parentd6150269b77def355bc485049e3ce66133f160af
Support prepared statements on extended protocol

However pg_hint_plan doesn't fully consider the extended protocol,
commit 3f6c983 accidentially broke the case where an analyzed prepared
statement is executed on extended protocol. This patch fixes that only
for the hints-in-comment case. Hint-table still doesn't work in the
case since query-normalization needs Query, which is not available in
planner_hook.
pg_hint_plan.c