postgres_ffi/wal_generate: add last_wal_record_xlog_switch and use it in tests

Fix #1190: WalDecoder did not return correct LSN of the next record after
processing a XLOG_SWITCH record
This commit is contained in:
Egor Suvorov
2022-06-25 00:53:45 +03:00
committed by Egor Suvorov
parent 52f445094a
commit 85bda437de
4 changed files with 26 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import pytest
@pytest.mark.parametrize('wal_type',
[
'simple',
'last_wal_record_xlog_switch',
'last_wal_record_crossing_segment',
'wal_record_crossing_segment_followed_by_small_one',
])