Skip to content

Commit ffa2b01

Browse files
author
Daniel Shelepanov
committed
[PBCKP-278] test fix
1 parent d3b427b commit ffa2b01

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: t/002_cfs_compatibility.pl

+5-4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ BEGIN
6565
shared_preload_libraries = 'ptrack'
6666
ptrack.map_size = 16
6767
wal_level = 'replica'
68+
autovacuum = 'off'
6869
});
6970

7071
$node->start;
@@ -119,9 +120,9 @@ BEGIN
119120

120121
# select the pagecount sums and compare them (should be equal)
121122
my $pagecount_sum_cfs = $node->safe_psql('postgres',
122-
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$cfs_relpath%';");
123+
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$cfs_relpath';");
123124
my $pagecount_sum_no_cfs = $node->safe_psql('postgres',
124-
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$no_cfs_relpath%';");
125+
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$no_cfs_relpath';");
125126

126127
is($pagecount_sum_cfs, $pagecount_sum_no_cfs, "pagecount sums don't match");
127128

@@ -137,9 +138,9 @@ BEGIN
137138

138139
# select the pagecount sums and compare them (again, they should be equal)
139140
$pagecount_sum_cfs = $node->safe_psql('postgres',
140-
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$cfs_relpath%';");
141+
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$cfs_relpath';");
141142
$pagecount_sum_no_cfs = $node->safe_psql('postgres',
142-
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$no_cfs_relpath%';");
143+
"select sum(pagecount) from ptrack_get_pagemapset('$init_lsn'::pg_lsn) where path like '%$no_cfs_relpath';");
143144

144145
is($pagecount_sum_cfs, $pagecount_sum_no_cfs, "pagecount sums don't match");
145146

0 commit comments

Comments
 (0)