From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
Cc: | bohmer(at)visionlink(dot)org, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [BUGS] BUG #8043: 9.2.4 doesn't open WAL files from archive, only looks in pg_xlog |
Date: | 2013-04-06 19:24:25 |
Message-ID: | CAMkU=1zvioQvMgbWssHv3DnXMNeEJmqtq_5hJqLGx8i4eGAQJg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Sat, Apr 6, 2013 at 1:24 AM, Heikki Linnakangas
<hlinnakangas(at)vmware(dot)com>wrote:
>
> Incidentally, I bumped into another custom backup script just a few weeks
> back that also excluded backup_label. I don't know what the author was
> thinking when he wrote that, but it seems to be a surprisingly common
> mistake. Maybe it's the "label" in the filename that makes people think
> it's not important.
I think part of it is the name "label', and part of it is that this file is
similar to and hence easily confused with the .history files, which (as far
as I know) truly are there only for human information and not for system
operation.
> Perhaps we should improve the documentation to make it more explicit that
> backup_label must be included in the backup. The docs already say that,
> though, so I suspect that people making this mistake have not read the docs
> very carefully anyway.
>
I don't think the docs are very clear on that. They say "This file will of
course be archived as a part of your backup dump file", but "will be" does
not imply "must be". Elsewhere it emphasizes that the label you gave to
pg_start_backup is written into the file, but doesn't really say what the
file itself is there for. To me it seems to imply that the file is there
for your convenience, to hold that label, and not as a critical part of the
system.
Patch attached, which I hope can be back-patched. I'll also add it to
commitfest-Next.
Cheers,
Jeff
Attachment | Content-Type | Size |
---|---|---|
backup_label_warning_v1.patch | application/octet-stream | 1.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | ERR ORR | 2013-04-06 23:12:25 | 9.2.4: Strange behavior when wildcard is on left side of search string |
Previous Message | Heikki Linnakangas | 2013-04-06 08:24:31 | Re: BUG #8043: 9.2.4 doesn't open WAL files from archive, only looks in pg_xlog |
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2013-04-06 19:51:30 | PROPOSAL: tracking aggregated numbers from pg_stat_database |
Previous Message | Jeff Janes | 2013-04-06 18:36:09 | Re: corrupt pages detected by enabling checksums |