Re: make pg_ctl more friendly

From: Andres Freund <andres(at)anarazel(dot)de>
To: Crisp Lee <litianxiang01(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: make pg_ctl more friendly
Date: 2023-11-09 01:32:50
Message-ID: 20231109013250.hfg4pskgigfenrtw@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2023-11-09 09:29:32 +0800, Crisp Lee wrote:
> How to judge from 'DB_SHUTDOWNED' that PITR ends normally? 'DB_SHUTDOWNED'
> is just a state, it could not give more meaning, so I reuse the
> recovery.done.

DB_SHUTDOWNED cannot be encountered while recovery is ongoing. If there was a
hard crash, you'd see DB_IN_ARCHIVE_RECOVERY or such, if the command was shut
down orderly before PITR has finished, you'd see DB_SHUTDOWNED_IN_RECOVERY.

- Andres

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Christensen 2023-11-09 01:55:16 Re: [PATCHES] Post-special page storage TDE support
Previous Message Andres Freund 2023-11-09 01:29:52 Re: Add new option 'all' to pg_stat_reset_shared()