On Thu, 2005-10-06 at 21:27 -0400, Tom Lane wrote:
> (b) pg_cancel_backend() was already in 8.0, and so changing it now
> represents an API break, for which being "a little cleaner" is not
> sufficient justification.
> 2. Revert the result type of pg_cancel_backend() to int, but leave the
> rest as-is (minimum change to avoid a compatibility break with 8.0).
Seems like the best way to go, without reading other posts.
ISTM one day somebody will want to return an error state other than
success/fail from that function and we would end up back here anyway.
Best Regards, Simon Riggs