Re: Change pg_cancel_*() to ignore current backend - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Change pg_cancel_*() to ignore current backend
Date
Msg-id 5631.1432130957@sss.pgh.pa.us
Whole thread Raw
In response to Re: Change pg_cancel_*() to ignore current backend  (David Steele <david@pgmasters.net>)
Responses Re: Change pg_cancel_*() to ignore current backend
Re: Change pg_cancel_*() to ignore current backend
List pgsql-hackers
David Steele <david@pgmasters.net> writes:
> +1.  I agree that cancelling/killing your own process should not be the
> default behavior.

I think backwards compatibility probably trumps that argument.  I have
no objection to providing a different call that behaves this way, but
changing the behavior of existing applications will face a *much*
higher barrier to acceptance.  Especially since a real use-case for
the current behavior was shown upthread, which means you can't argue
that it's simply a bug.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: [PATCH] Generalized JSON output functions
Next
From: Amit Kapila
Date:
Subject: Re: POC: Cache data in GetSnapshotData()