Re: Latches, loop and exit

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Latches, loop and exit
Date: 2010-09-15 07:08:57
Message-ID: 1284534537.1952.4789.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.com
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomáš Kovářík 2010-09-15 07:33:58 Server crash during simple c-language function
Previous Message Heikki Linnakangas 2010-09-15 07:02:25 Re: patch: SQL/MED(FDW) DDL