We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793a89c commit f06588aCopy full SHA for f06588a
src/backend/access/transam/xlog.c
@@ -5265,6 +5265,18 @@ readRecoveryCommandFile(void)
5265
{
5266
recoveryTarget = RECOVERY_TARGET_TIME;
5267
5268
+ if (strcmp(item->value, "epoch") == 0 ||
5269
+ strcmp(item->value, "infinity") == 0 ||
5270
+ strcmp(item->value, "-infinity") == 0 ||
5271
+ strcmp(item->value, "now") == 0 ||
5272
+ strcmp(item->value, "today") == 0 ||
5273
+ strcmp(item->value, "tomorrow") == 0 ||
5274
+ strcmp(item->value, "yesterday") == 0)
5275
+ ereport(FATAL,
5276
+ (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
5277
+ errmsg("recovery_target_time is not a valid timestamp: \"%s\"",
5278
+ item->value)));
5279
+
5280
/*
5281
* Convert the time string given by the user to TimestampTz form.
5282
*/
0 commit comments