Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add user interrupt check while waiting for query results to be ready. #193
Sometimes user wants to terminate a query before a first row of results is available (e.g. it turned out that the query is too complicated and he wants to rewrite it instead of waiting for its completion). So far user interrupts where not checked until
This pull requests adds user interrupts check between
It is done by waiting for data on the database connection socket with a timeout (1 second) using glibc's
Of course we can. How would you prefer it to be done?
By the way I added a link to the PG documentation in the code and an example of using