|
|
|
|
@ -6228,16 +6228,17 @@ GetXLogReceiptTime(TimestampTz *rtime, bool *fromStream) |
|
|
|
|
* Note that text field supplied is a parameter name and does not require |
|
|
|
|
* translation |
|
|
|
|
*/ |
|
|
|
|
#define RecoveryRequiresIntParameter(param_name, currValue, minValue) \ |
|
|
|
|
do { \
|
|
|
|
|
if ((currValue) < (minValue)) \
|
|
|
|
|
ereport(ERROR, \
|
|
|
|
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), \
|
|
|
|
|
errmsg("hot standby is not possible because %s = %d is a lower setting than on the primary server (its value was %d)", \
|
|
|
|
|
param_name, \
|
|
|
|
|
currValue, \
|
|
|
|
|
minValue))); \
|
|
|
|
|
} while(0) |
|
|
|
|
static void |
|
|
|
|
RecoveryRequiresIntParameter(const char *param_name, int currValue, int minValue) |
|
|
|
|
{ |
|
|
|
|
if (currValue < minValue) |
|
|
|
|
ereport(ERROR, |
|
|
|
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), |
|
|
|
|
errmsg("hot standby is not possible because %s = %d is a lower setting than on the primary server (its value was %d)", |
|
|
|
|
param_name, |
|
|
|
|
currValue, |
|
|
|
|
minValue))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Check to see if required parameters are set high enough on this server |
|
|
|
|
|