Hopefully make the cancellation tests not racy anymore.
Hopefully make the cancellation tests not racy anymore.

The tests now use a separate connection to poll pg_stat_activity and
wait for the main connection to enter the pg_sleep call. While ugly,
this should actually work.

wulczer/txpostgres