class PG::Connection

def sync_cancel

def sync_cancel
	cancon = PG::CancelConnection.new(self)
	cancon.sync_cancel
rescue PG::Error => err
	err.to_s
end