Skip to content

Integrate asynchronous queries with TCL events #36

@dmichal

Description

@dmichal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions