Re: [HACKERS] Timeline ID in backup_label file

Поиск
Список
Период
Сортировка
От David Steele
Тема Re: [HACKERS] Timeline ID in backup_label file
Дата
Msg-id 154d99d9-b8f3-f511-8710-1d978780f338@pgmasters.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Timeline ID in backup_label file  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: [HACKERS] Timeline ID in backup_label file
Список pgsql-hackers
Hi Michael,

Find my review below.

On 10/26/17 2:03 PM, Michael Paquier wrote:
>
> Thanks for the feedback. Attached is a patch to achieve so, I have
> added as well a STOP TIMELINE field in the backup history file. Note
> that START TIMELINE gets automatically into the backup history file.
> Added a CF entry as well.
+    TimeLineID    tli1, tli2;

I'm not that excited about these names but don't have any better ideas.

+    if (fscanf(lfp, "START TIMELINE: %u\n", &tli2) == 1)

This didn't work when I tested it (I had intentionally munged the "START
TIMELINE" to produce an error).  The problem is the "START TIME" and
"LABEL" lines which are not being read.  I added a few fgets() calls and
it worked.

Thanks!
-- 
-David
david@pgmasters.net


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [HACKERS] Transaction control in procedures
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Schedule for migration to pglister