In some cases instead of sending a query immediately, we prepend it, so we can send it with a next query. We do this for BEGIN TRANSACTION and whenever a connection is reset as it's returned to the pool.
#4907 made it so we shouldn't even send a cancellation request until we've read all of the responses for the prepended query. Instead, we can make it so the prepended query runs in the same transaction as an actual query.
This is going to require:
cc @roji
In some cases instead of sending a query immediately, we prepend it, so we can send it with a next query. We do this for
BEGIN TRANSACTIONand whenever a connection is reset as it's returned to the pool.#4907 made it so we shouldn't even send a cancellation request until we've read all of the responses for the prepended query. Instead, we can make it so the prepended query runs in the same transaction as an actual query.
This is going to require:
cc @roji