Re: [HACKERS] Timeline ID in backup_label file

2017-10-26 Thread Michael Paquier
On Thu, Oct 26, 2017 at 5:50 AM, David Steele wrote: > On 10/25/17 10:10 PM, Craig Ringer wrote: >> On 26 October 2017 at 02:50, Michael Paquier >> wrote: >>> >>> I would find interesting to add at the bottom of the backup_label file >>> a new

Re: [HACKERS] Timeline ID in backup_label file

2017-10-26 Thread David Steele
On 10/25/17 10:10 PM, Craig Ringer wrote: > On 26 October 2017 at 02:50, Michael Paquier > wrote: >> >> I would find interesting to add at the bottom of the backup_label file >> a new field called "START TIMELINE: %d" to put this information in a >> more understandable

Re: [HACKERS] Timeline ID in backup_label file

2017-10-25 Thread Craig Ringer
On 26 October 2017 at 02:50, Michael Paquier wrote: > Hi all, > > Lately, in order to extract some information from a backup_label file > in python I have found myself doing something like the following to > get a timeline number (feel free to reuse that code,

[HACKERS] Timeline ID in backup_label file

2017-10-25 Thread Michael Paquier
Hi all, Lately, in order to extract some information from a backup_label file in python I have found myself doing something like the following to get a timeline number (feel free to reuse that code, especially the regex pattern): pattern = re.compile('^START WAL