pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: when the startup process doesn't
Date: Wed, 21 Apr 2021 14:43:30 -0400
Message-ID: <792087.1619030610@sss.pgh.pa.us> (raw )
In-Reply-To: <20210421183624.GP20766@tamriel.snowman.net >
References: <CA+hUKGKg6_h=p03vA9_+05RAJGDDJ4R0u29f5UEhfg7bZTcSog@mail.gmail.com >
<465221.1618879471@sss.pgh.pa.us >
<CA+TgmoaSELPiPqNcfNG_TyDe6=VVzfyh+YvhB6-GGsWoo=jc8Q@mail.gmail.com >
<CABUevEwc_oP=kf6CYxNGM3KLMRBe3YBhM8+qu0oBbY_x89ifHw@mail.gmail.com >
<20210420171720.56599607@firost >
<CABUevEyTBiiDvjdKo5h=gj6W1uL6i4jOOV4nur0YZsuKvKRVXw@mail.gmail.com >
<631849.1618942988@sss.pgh.pa.us >
<20210420185150.GL20766@tamriel.snowman.net >
<633337.1618945018@sss.pgh.pa.us >
<20210420203642.nvxvolm37f2k6prj@alap3.anarazel.de >
<20210421183624.GP20766@tamriel.snowman.net >
Stephen Frost <sfrost@snowman.net> writes:
> * Andres Freund (andres@anarazel.de) wrote:
>> On 2021-04-20 14:56:58 -0400, Tom Lane wrote:
>>> I wonder though whether we really need authentication here. pg_ping
>>> already exposes whether the database is up, to anyone who can reach the
>>> postmaster port at all. Would it be so horrible if the "can't accept
>>> connections" error message included a detail about "recovery is X%
>>> done"?
>> Unfortunately I think something like a percentage is hard to calculate
>> right now.
> While it obviously wouldn't be exactly accurate, I wonder if we couldn't
> just look at the WAL files we have to reply and then guess that we'll go
> through about half of them before we reach the end..? I mean, wouldn't
> exactly be the first time that a percentage progress report wasn't
> completely accurate. :)
Or we could skip all the guessing and just print something like what
the startup process exposes in ps status, ie "currently processing
WAL file so-and-so".
regards, tom lane
view thread (38+ messages) latest in thread
Message-ID: <792087.1619030610@sss.pgh.pa.us>
Permalink: ../792087.1619030610@sss.pgh.pa.us/
Also on: postgresql.org/message-id/792087.1619030610@sss.pgh.pa.us
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, sfrost@snowman.net, andres@anarazel.de, magnus@hagander.net, jgdr@dalibo.com, robertmhaas@gmail.com, thomas.munro@gmail.com
Subject: Re: when the startup process doesn't
In-Reply-To: <792087.1619030610@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