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

Re: Minor race-condition problem during database startup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Minor race-condition problem during database startup
Date: 2008-11-24 13:28:54
Message-ID: 17143.1227533334@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> Zdenek Kotala napsal(a):
>> By my opinion there is not reason to retry kill call, because it fails 
>> only in situation if process does not exist or caller does not have 
>> permission to send a signal.

> If I think more about it, that code is here because it probably tries to bypass 
> time when bgwriter is restarted.

Correct.  Did you read the commit log message?
http://archives.postgresql.org/pgsql-committers/2008-11/msg00269.php

The bgwriter-exit case is currently treated as a crash and I'm not
immediately proposing to change that, but this code or something close
to it will be needed if we ever do want to recover from bgwriter exit
nicely.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2008-11-24 13:34:16
Subject: Re: WIP: default values for function parameters
Previous:From: Tom LaneDate: 2008-11-24 13:25:13
Subject: Re: WIP: default values for function parameters

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