In case the client sends a BIND message for a query
that has not yet been parsed by the executing node,
the PARSE will be executed before attempting to BIND
the parameters.
However, during the execution of the PARSE, the session
context is not set to in_progress, which leads to wrong
backend validity tests in read_kind_from_backend which
in turn makes the process wait on a backend which is not
going to send anything.
Fixes bug #377.
Bug report, analysis and fix by Ancoron Luciferis.
pool_where_to_send(query_context, query_context->original_query,
query_context->parse_tree);
+ pool_set_query_in_progress();
if (parse_before_bind(frontend, backend, parse_msg) != POOL_CONTINUE)
+ {
+ pool_unset_query_in_progress();
return POOL_END;
+ }
}
/*