This, what I see in your patch, is sending additional statement to server.
This adds some unnecessery (especially TCP/IP) latency. gura
> > I sent such patch fully in Java
> > (http://archives.postgresql.org/pgsql-jdbc/2009-11/msg00010.php),
> > implementing cancellation with Timer and "cancel query" facility of
> > PSQL server,
>
> Would you like to update it?
I updated patch to latets CVS version, I didn't have time to remove some
trashes from it.
If something will be wrong with patch, give a feedback.
Kind regards,
Radosław Smogura
http://softperience.pl