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:05 +0000 (19:08 +0900)
commit3cb8d0bf50e4ee23eb7c9c485d936cd3c4dce0a1
treeb903ce82b5eb805fe5de2d54408d7a60d19860b7
parenteb5f0ea75c32357313dba06c7982e2ee8c4c534a
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