-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GUC controlling whether to pause recovery if some critical GUCs at replica have smaller value than on primary #501
base: REL_16_STABLE_neon
Are you sure you want to change the base?
Conversation
{ | ||
{"recovery_pause_on_misconfig", PGC_POSTMASTER, WAL_RECOVERY_TARGET, | ||
gettext_noop("Pause recovery if values of critical GUCs at replica are smaller than on primary."), | ||
NULL | ||
}, | ||
&recoveryPauseOnMisconfig, | ||
false, | ||
NULL, NULL, NULL | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we instead expose this GUC in the neon
extension under neon.recovery_pause_on_misconfig
? Exposing a new, non-standard GUC outside the neon
namespace seems wrong to me.
if (!recoveryPauseOnMisconfig) | ||
return; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, what's our solution here? We don't pause and just continue? We shut down?
0bb232c
to
b47180d
Compare
ereport(FATAL, | ||
ereport(recoveryPauseOnMisconfig ? FATAL : WARNING, | ||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), | ||
errmsg("recovery aborted because of insufficient parameter settings"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misleading. You print a WARNING that says "recovery aborted", but it is not aborted.
The GUC name is misleading too: if it's 'on', you abort rather than pause here.
…t replica have smaller value than on primary
b47180d
to
e6e8408
Compare
See neondatabase/neon#9023