Branch: Tag:

2017-11-30

2017-11-30 01:20:43 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Use a minithread to start up the query instead of call_out().

1143:    proxy.clearmessage = 1;    // Do not run a query in the local_backend to prevent deadlocks    if (Thread.this_thread() == .pgsql_util.local_backend.executing_thread()) -  call_out(startquery, 0, forcetext, portal, q, tp, preparedname); +  Thread.Thread(startquery, forcetext, portal, q, tp, preparedname);    else    startquery(forcetext, portal, q, tp, preparedname);    throwdelayederror(portal);