You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to execute query in an asynchronous manner, one has to send it by calling pg_sendquery and later consequently poll the connection with pg_isbusy. In my opinion this could be improved by taking advantage of the TCL event mechanism. What comes to my mind is defining callback to be executed after receiving some data on the socket; pg_isbusy could then be called from the callback script instead of being called blindly in a loop.
The text was updated successfully, but these errors were encountered:
dmichal
changed the title
Integrate TCL events asynchronous queries
Integrate asynchronous queries with TCL events
Sep 15, 2020
Currently, to execute query in an asynchronous manner, one has to send it by calling
pg_sendquery
and later consequently poll the connection withpg_isbusy
. In my opinion this could be improved by taking advantage of the TCL event mechanism. What comes to my mind is defining callback to be executed after receiving some data on the socket;pg_isbusy
could then be called from the callback script instead of being called blindly in a loop.The text was updated successfully, but these errors were encountered: