Hello,
Please find a patch which diables change of connection from query toolwhile query tool transaction is in progress.
Thanks,Yogesh MahajanEnterpriseDB