From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Sergei Kornilov <sk(at)zsrv(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Masahiko Sawada <masahiko(dot)sawada(at)2ndquadrant(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Subject: | Re: Improve handling of parameter differences in physical replication |
Date: | 2020-11-20 13:14:44 |
Message-ID: | c3375379-d699-c514-9664-defbb92ec344@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2020-11-19 20:17, Sergei Kornilov wrote:
> Seems WAIT_EVENT_RECOVERY_PAUSE addition was lost during patch simplification.
added
>> ereport(FATAL,
>> (errmsg("recovery aborted because of insufficient parameter settings"),
>> errhint("You can restart the server after making the necessary configuration changes.")));
>
> I think we should repeat here conflicted param_name and minValue. pg_wal_replay_resume can be called days after recovery being paused. The initial message can be difficult to find.
done
>
>> errmsg("recovery will be paused")
>
> May be use the same "recovery has paused" as in recoveryPausesHere? It doesn't seem to make any difference since we set pause right after that, but there will be a little less work translators.
done
> Not sure about "If recovery is unpaused". The word "resumed" seems to have been usually used in docs.
I think I like "unpaused" better here, because "resumed" would seem to
imply that recovery can actually continue.
One thing that has not been added to my patch is the equivalent of
496ee647ecd2917369ffcf1eaa0b2cdca07c8730, which allows promotion while
recovery is paused. I'm not sure that would be necessary, and it
doesn't look easy to add either.
--
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/
Attachment | Content-Type | Size |
---|---|---|
v5-0001-Pause-recovery-for-insufficient-parameter-setting.patch | text/plain | 6.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2020-11-20 13:30:53 | Re: don't allocate HashAgg hash tables when running explain only |
Previous Message | Magnus Hagander | 2020-11-20 12:59:18 | Re: Move OpenSSL random under USE_OPENSSL_RANDOM |