aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-08-16 12:21:50 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-08-16 12:23:51 +0300
commit2877c67bc24510c30bca477c876f5de427c85588 (patch)
tree8bb7c861039d8e673e556a0796f45a9bf2ba0901 /src
parent3b3f09351b48f3081021ce60964c92cec42b7c3d (diff)
downloadpostgresql-2877c67bc24510c30bca477c876f5de427c85588.tar.gz
postgresql-2877c67bc24510c30bca477c876f5de427c85588.zip
Fix bogus comment that claimed that the new BACKUP METHOD line in
backup_label was new in 9.0. Spotted by Fujii Masao.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 11035e6b4cd..a462288a9ce 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9826,9 +9826,9 @@ read_backup_label(XLogRecPtr *checkPointLoc, bool *backupEndRequired)
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("invalid data in file \"%s\"", BACKUP_LABEL_FILE)));
/*
- * BACKUP METHOD line is new in 9.0. Don't complain if it doesn't exist,
- * in case you're restoring from a backup taken with an 9.0 beta version
- * that didn't emit it.
+ * BACKUP METHOD line is new in 9.2. We can't restore from an older backup
+ * anyway, but since the information on it is not strictly required, don't
+ * error out if it's missing for some reason.
*/
if (fscanf(lfp, "BACKUP METHOD: %19s", backuptype) == 1)
{