pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily
Date: Tue, 11 Sep 2018 11:15:21 -0400
Message-ID: <25443.1536678921@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaY5KivibJHPWyECMh+4m8Z_1Spj_gqcPVcy4Xz390V0g@mail.gmail.com>
References: <6202.1536359835@sss.pgh.pa.us>
	<CA+TgmoasJ8xBt2F2QXRaf1q8+9auXFi2QT_fWMrWpCX837mkxw@mail.gmail.com>
	<CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com>
	<CA+TgmoaY5KivibJHPWyECMh+4m8Z_1Spj_gqcPVcy4Xz390V0g@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Sep 11, 2018 at 5:54 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> Please explain why you think that would be with no restart.

> Because the startup process will die, and if that happens, IIRC,
> there's no crash-and-restart loop.  You're just done.

Unless we think that the startup process will never never ever throw
an error, that might be a behavior that needs discussion in itself.

Obviously an infinite crash-and-restart loop would be bad, but
perhaps the postmaster could have logic that would allow restarting
the startup process some small number of times.  I think the hard
part would be in deciding whether a previous restart had succeeded
(ie made progress beyond the prior crash point), so that it should
no longer count against the retry limit.

			regards, tom lane




view thread (19+ messages)  latest in thread

Message-ID: <25443.1536678921@sss.pgh.pa.us>
Permalink:  ../25443.1536678921@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25443.1536678921@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, simon@2ndquadrant.com, jeff.janes@gmail.com
  Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily
  In-Reply-To: <25443.1536678921@sss.pgh.pa.us>
  References: <6202.1536359835@sss.pgh.pa.us> <CA+TgmoasJ8xBt2F2QXRaf1q8+9auXFi2QT_fWMrWpCX837mkxw@mail.gmail.com> <CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com> <CA+TgmoaY5KivibJHPWyECMh+4m8Z_1Spj_gqcPVcy4Xz390V0g@mail.gmail.com> <25443.1536678921@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox