Re: Cancel/Kill backend functions

From: Neil Conway <neilc(at)samurai(dot)com>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Cancel/Kill backend functions
Date: 2004-05-27 19:11:07
Message-ID: 40B63D4B.8020108@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-05-27 19:31:23 Re: win32 locale fixes
Previous Message Magnus Hagander 2004-05-27 18:35:28 Re: Cancel/Kill backend functions