Skip to content

Commit 98f0310

Browse files
authored
Merge pull request #17 from ongres/addpercent
added percent simbol in like for history files
2 parents fc88d0b + b8ac5d5 commit 98f0310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/WAL/distance_wals_from_dir.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
with oldest_mod_walfile as (
33
select (substring(name from 9 for 8) || '/' || substring(name from 17 for 8 ))::pg_lsn as oldest_lsn
44
from pg_ls_waldir()
5-
where name not ilike 'history' /* Skip .history files */
5+
where name not ilike '%history%' /* Skip .history files */
66
order by modification desc limit 1
77
)
88
select pg_size_pretty(pg_wal_lsn_diff( pg_current_wal_lsn(),oldest_lsn))

0 commit comments

Comments
 (0)