Re: "FATAL: the database system is starting up" and hot_standby = on

From: Ilnur Khanov <khanov(dot)i(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: "FATAL: the database system is starting up" and hot_standby = on
Date: 2017-12-08 06:25:01
Message-ID: CAN+PxfRY3ba40R=yDSDkONdPyA2pBrmRpYw-7xtW9LVw_OEpTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>
> Now that would be really strange if you could modify the database while in
> recovery mode.
> Unfortunately you cannot test that now...

I tried that right after enabling hot_standby, so databases was writable.

In my opinion the main question is why crash recovery took so long.
> The server log should be able to tell you more about it.

server logs with debug level 5 didn't tell anything usefull.
there is no something in logs about recovery mode start, nor about recovery
mode end.
so it's hard to say how long crash recovery took.
No more 24h, no less 2h. Databases are very small - about 60Gb. Resources
are high available (SSD, Xeon E7), but not used.

Is your checkpoint_timeout very high?
>
It's default (5 min).

> Was there a backup_label file in the data directory (now backup_label.old)?

No, there is no.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2017-12-08 16:00:18 Re: [ADMIN] Re: WARNING: terminating connection because of crash of another server process
Previous Message Laurenz Albe 2017-12-08 05:49:15 Re: "FATAL: the database system is starting up" and hot_standby = on