Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly. - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly.
Date
Msg-id 20180912022744.GE25160@paquier.xyz
Whole thread Raw
In response to Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly.  (kalyani kaniganti <kalyanithumati@gmail.com>)
Responses Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
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.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: kalyani kaniganti
Date:
Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error Thesource cluster was not shut down cleanly.
Next
From: PG Bug reporting form
Date:
Subject: BUG #15380: Sorting paging data loss