#include "utils/guc.h"
#include "utils/timestamp.h"
+
+static void validate_xlog_location(char *str);
+
+
/*
* pg_start_backup: set up for taking an on-line backup dump
*
*/
locationstr = text_to_cstring(location);
+ validate_xlog_location(locationstr);
+
if (sscanf(locationstr, "%X/%X", &uxlogid, &uxrecoff) != 2)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
locationstr = text_to_cstring(location);
+ validate_xlog_location(locationstr);
+
if (sscanf(locationstr, "%X/%X", &uxlogid, &uxrecoff) != 2)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),