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:26:20 +0000 (10:26 +0900)
commitbd305989c398b9dec50177638ec7e825b90496f3
treea7a93b77f63b649f77cd582162ebe3f3b43ab863
parentc0a2be848a5bebab1c07dc5669ba2c81e9bb4a52
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