Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group