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

From Marko Tiikkaja
Subject Re: Change pg_cancel_*() to ignore current backend
Date
Msg-id 555BC5E1.8090900@joh.to
Whole thread Raw
In response to Change pg_cancel_*() to ignore current backend  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Change pg_cancel_*() to ignore current backend  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
On 2015-05-20 00:59, Jim Nasby wrote:
> I find it annoying to have to specifically exclude pg_backend_pid() from
> pg_stat_activity if I'm trying to kill a bunch of backends at once, and
> I can't think of any reason why you'd ever want to call a pg_cancel_*
> function with your own PID.

That's a rather easy way of testing that you're handling FATAL errors 
correctly from a driver/whatever.


.m



pgsql-hackers by date:

Previous
From: Jan de Visser
Date:
Subject: Re: Problems with question marks in operators (JDBC, ECPG, ...)
Next
From: "David G. Johnston"
Date:
Subject: Re: Change pg_cancel_*() to ignore current backend