File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ifdef USE_PGXS
2222PGXS := $(shell $(PG_CONFIG ) --pgxs)
2323include $(PGXS )
2424else
25+ subdir = contrib/ptrack
2526top_builddir = ../..
2627# Makefile.global is a build artifact and initially may not be available
2728ifneq ($(wildcard $(top_builddir ) /src/Makefile.global) , )
Original file line number Diff line number Diff line change @@ -117,9 +117,9 @@ BEGIN
117117
118118# Remember ptrack init_lsn
119119my $init_lsn = $node -> safe_psql(" postgres" , " SELECT ptrack_init_lsn()" );
120- unlike (
120+ like (
121121 $init_lsn ,
122- qr / 0\/ 0 / ,
122+ qr / 0\/ [0-9][0-9]+ / ,
123123 ' ptrack init LSN should not be 0/0 after CHECKPOINT' );
124124
125125# Ptrack map should survive crash
@@ -161,9 +161,9 @@ BEGIN
161161
162162$node -> safe_psql(" postgres" , " CHECKPOINT" );
163163$res_stdout = $node -> safe_psql(" postgres" , " SELECT ptrack_init_lsn()" );
164- unlike (
164+ like (
165165 $res_stdout ,
166- qr / 0\/ 0 / ,
166+ qr / 0\/ [0-9][0-9]+ / ,
167167 ' ptrack init LSN should not be 0/0 after CHECKPOINT' );
168168ok($res_stdout ne $init_lsn , ' ptrack init_lsn should not be the same after map resize' );
169169$res_stdout = $node -> safe_psql(" postgres" , " SELECT ptrack_get_pagemapset('$flush_lsn ')" );
You can’t perform that action at this time.
0 commit comments