[PATCH] Allow usage of archive .backup files as backup_label - Mailing list pgsql-hackers

From Michael Banck
Subject [PATCH] Allow usage of archive .backup files as backup_label
Date
Msg-id 63039dec.050a0220.31bb6.fa39@mx.google.com
Whole thread Raw
Responses Re: [PATCH] Allow usage of archive .backup files as backup_label
List pgsql-hackers
Hi,

The .backup files written to the archive (if archiving is on) are very
similar to the backup_label that's written/returned by
pg_stop_backup()/pg_backup_stop(), they just have a few extra lines
about the end of backup process that are missing from backup_label.

The parser in xlogrecovery.c however barfs on them because it does not
expect the additional STOP WAL LOCATION on line 2.

The attached makes parsing this line optional, so that one can use those
.backup files in place of backup_label. This is e.g. useful if the
backup_label got lost or the output of pg_stop_backup() was not
captured.


Michael

-- 
Team Lead PostgreSQL
Project Manager
Tel.: +49 2166 9901-171
Mail: michael.banck@credativ.de

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Management: Dr. Michael Meskes, Geoff Richardson, Peter Lilley

Our handling of personal data is subject to:
https://www.credativ.de/en/contact/privacy/

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Remove offsetof definition
Next
From: Andres Freund
Date:
Subject: Re: Strip -mmacosx-version-min options from plperl build