Re: Latches, loop and exit - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Latches, loop and exit
Date
Msg-id 1284534537.1952.4789.camel@ebony
Whole thread Raw
In response to Re: Latches, loop and exit  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Wed, 2010-09-15 at 09:40 +0300, Heikki Linnakangas wrote:
> > However, if the following clause is ever invoked, then the loop does
> > have problems and we leave when not caught up.
> >
> > if (!PostmasterIsAlive(true))
> >     exit(1);
> 
> As the comment above that says, that's just an escape hatch if 
> postmaster dies unexpectedly for any reason. It won't happen in a normal 
> shutdown.

Thanks for clarifying. I wanted to copy the logic, so just checking.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Development, 24x7 Support, Training and Services



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: patch: SQL/MED(FDW) DDL
Next
From: Tomáš Kovářík
Date:
Subject: Server crash during simple c-language function