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:08:30 +0000 (19:08 +0900)
commitd5ec24302cfa4139f6af702e555118a8f8f5a1c2
tree7de50d59fd6de9f74c81c0533c5bc0b04b18c1d8
parent000d83604c5686b8b9d949f6303aab145888ec2e
Support prepared statements on extended protocol

However pg_hint_plan doesn't fully consider the extended protocol,
commit c05bb31 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