Skip to content

Commit 94c11ce

Browse files
authored
Merge pull request #31 from postgrespro/PBCKP-278_cfs-ptrack
Pbckp 278 cfs ptrack
2 parents 920f4ec + 2fa0f97 commit 94c11ce

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

t/002_cfs_compatibility.pl

Lines changed: 5 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy