pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: kalyani kaniganti <kalyanithumati@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.
Date: Wed, 12 Sep 2018 09:48:04 -0400
Message-ID: <20180912134804.GA19769@momjian.us> (raw)
In-Reply-To: <20180912022744.GE25160@paquier.xyz>
References: <20180910164735.GA28597@momjian.us>
	<CACAAi_5FnpZOjgbkUG9cM6RaKDUFNEZHi7Dt2qjQ5ueNTJtaow@mail.gmail.com>
	<20180910174823.GD20064@momjian.us>
	<CACAAi_4hHwkpjC4Qavsx3MpVEBDD_4=sDddnSRD681U2Y=5Lzg@mail.gmail.com>
	<20180911023439.GA27769@momjian.us>
	<CACAAi_45KJ2SXLPWGQSKVVGRBzq_DEYxTPt9Qj50e0TPMxVLzg@mail.gmail.com>
	<20180911161842.GL20064@momjian.us>
	<CACAAi_4zrTaGYqsc28SkcyiNdo7ECSVuap4FNG51tOPX4+YuJg@mail.gmail.com>
	<CACAAi_6c4hhhxFnUnerrBsfkS1+9CFBt79ORgp_8m6+Snck0Qw@mail.gmail.com>
	<20180912022744.GE25160@paquier.xyz>

On Wed, Sep 12, 2018 at 11:27:44AM +0900, Michael Paquier wrote:
> On Wed, Sep 12, 2018 at 06:51:44AM +0530, kalyani kaniganti wrote:
> > I have a query,in our case old db is not getting shutdown cleanly .May I
> > know why the DB is unable to shutdown cleanly and this happens repeatedly
> > .How we can recover the cluster state going to in production state after
> > stopping the cluster.
> 
> If one of your PostgreSQL instances is not able to stop, its logs would
> tell you what it did not have time to finish.  You may perhaps blame the
> time it takes for the shutdown checkpoint to finish.  You should also
> try to use the fast mode of "pg_ctl stop", which makes sure that all
> sessions connected are forcibly finished cleanly, allowing Postgres to
> not need crash recovery the next time it starts.

Oh, I never suspected it was a timing issue.  Use pg_ctl -w to wait for
the shutdown.  The default for wait has changed over time.  I will add
-w to the pg_upgrade manual page example using pg_ctl for stopping the
server.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




view thread (24+ messages)  latest in thread

Message-ID: <20180912134804.GA19769@momjian.us>
Permalink:  ../20180912134804.GA19769@momjian.us/
Also on:    postgresql.org/message-id/20180912134804.GA19769@momjian.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-bugs@postgresql.org
  Cc: bruce@momjian.us, michael@paquier.xyz, kalyanithumati@gmail.com
  Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.
  In-Reply-To: <20180912134804.GA19769@momjian.us>
  References: <20180910164735.GA28597@momjian.us> <CACAAi_5FnpZOjgbkUG9cM6RaKDUFNEZHi7Dt2qjQ5ueNTJtaow@mail.gmail.com> <20180910174823.GD20064@momjian.us> <CACAAi_4hHwkpjC4Qavsx3MpVEBDD_4=sDddnSRD681U2Y=5Lzg@mail.gmail.com> <20180911023439.GA27769@momjian.us> <CACAAi_45KJ2SXLPWGQSKVVGRBzq_DEYxTPt9Qj50e0TPMxVLzg@mail.gmail.com> <20180911161842.GL20064@momjian.us> <CACAAi_4zrTaGYqsc28SkcyiNdo7ECSVuap4FNG51tOPX4+YuJg@mail.gmail.com> <CACAAi_6c4hhhxFnUnerrBsfkS1+9CFBt79ORgp_8m6+Snck0Qw@mail.gmail.com> <20180912022744.GE25160@paquier.xyz> <20180912134804.GA19769@momjian.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