>> But it is a very good question. I was reluctant to ask about it, but
>> since it already happened... How do I cancel gracefully?
Right now, you don't. We're working on adding a cancel facility though.
I've got the libpq (client) side done, now Bruce just has to make the
backend respond ;-)
regards, tom lane