OSDN Git Service

Fix about unexpectedly living plpgsql query string.
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Tue, 16 Dec 2014 04:20:02 +0000 (13:20 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 17 Dec 2014 01:46:52 +0000 (10:46 +0900)
commit45ca0332695be1c386374dd2782f65c86dbc943c
treeb622689aedca1d8774f0275afe4ade87f4befbb7
parenta998f2b26eee34539df7c6b40ed81ef557d1338a
Fix about unexpectedly living plpgsql query string.

pg_hint_plan forgot to erase plpgsql query strings when it is NOT a
static statement, so it continued to read hints from the remenbered
wrong query string after using dynamic execution of a statement. This
commit makes it to be erased for any types of pl/pgsql statement.
pg_hint_plan.c