Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate asynchronous queries with TCL events #36

Open
dmichal opened this issue Sep 15, 2020 · 0 comments
Open

Integrate asynchronous queries with TCL events #36

dmichal opened this issue Sep 15, 2020 · 0 comments

Comments

@dmichal
Copy link

dmichal commented 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 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.

@dmichal dmichal changed the title Integrate TCL events asynchronous queries Integrate asynchronous queries with TCL events Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant