TAP test to cover "EndOfLogTLI != replayTLI" case

Поиск
Список
Период
Сортировка
От Amul Sul
Тема TAP test to cover "EndOfLogTLI != replayTLI" case
Дата
Msg-id CAAJ_b94Vjt5cXGza_1MkjLQWciNdEemsmiWuQj0d=M7JfjAa1g@mail.gmail.com
обсуждение исходный текст
Ответы Re: TAP test to cover "EndOfLogTLI != replayTLI" case  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hi,

Attached patch covers a case where TLI in the filename for a
record being read is different from where it belongs to. In other
words, it covers following case noted in StartupXLOG():

/*
 * EndOfLogTLI is the TLI in the filename of the XLOG segment containing
 * the end-of-log. It could be different from the timeline that EndOfLog
 * nominally belongs to, if there was a timeline switch in that segment,
 * and we were reading the old WAL from a segment belonging to a higher
 * timeline.
 */
EndOfLogTLI = xlogreader->seg.ws_tli;

Test tried to set recovery target just before the end-of-recovery WAL
record.  Unfortunately, the test couldn't directly verify EndOfLogTLI
!= replayTLI case, I am not sure how to do that -- any suggestions
will be greatly appreciated.  Perhaps, having this test is good to
improve xlog.c test coverage.   Also, if you see in other angle test
covers a case where recovery_target_lsn and
recovery_target_inclusive=off which doesn't exist as of now and that
is the reason I have added this test to 003_recovery_targets.pl file.

Thoughts? Suggestions?

--
Regards,
Amul Sul
EDB: http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: row filtering for logical replication
Следующее
От: Greg Nancarrow
Дата:
Сообщение: Re: Failed transaction statistics to measure the logical replication progress