Skip to content

Commit 9651502

Browse files
author
Sofia Kopikova
committed
Fix errors for PostgreSQL 18+ in ptrack 001_basic test
1 parent 1449b05 commit 9651502

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ifdef USE_PGXS
2222
PGXS := $(shell $(PG_CONFIG) --pgxs)
2323
include $(PGXS)
2424
else
25+
subdir = contrib/ptrack
2526
top_builddir = ../..
2627
# Makefile.global is a build artifact and initially may not be available
2728
ifneq ($(wildcard $(top_builddir)/src/Makefile.global), )

t/001_basic.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ BEGIN
117117

118118
# Remember ptrack init_lsn
119119
my $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');
168168
ok($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')");

0 commit comments

Comments
 (0)