Re: Cancel/Kill backend functions - Mailing list pgsql-patches

From Neil Conway
Subject Re: Cancel/Kill backend functions
Date
Msg-id 40B63D4B.8020108@samurai.com
Whole thread Raw
In response to Re: Cancel/Kill backend functions  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Cancel/Kill backend functions
List pgsql-patches
Magnus Hagander wrote:
> You'd actually need to get a pid *reuse* during that short time.

That isn't so implausible on a system which assigns PIDs randomly.
Holding the SInvalLock doesn't remove the race condition, but it
makes it less likely to occur for essentially very little cost.

> Bottom line -  while maybe slightly more correcet, not sure it's
> necessary.

IMHO it's worth doing.

-Neil


pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Cancel/Kill backend functions
Next
From: Tom Lane
Date:
Subject: Re: win32 locale fixes