Skip to content

Commit

Permalink
Merge pull request #17 from ongres/addpercent
Browse files Browse the repository at this point in the history
added percent simbol in like for history files
  • Loading branch information
DiegoDAF authored Sep 12, 2023
2 parents fc88d0b + b8ac5d5 commit 98f0310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/WAL/distance_wals_from_dir.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
with oldest_mod_walfile as (
select (substring(name from 9 for 8) || '/' || substring(name from 17 for 8 ))::pg_lsn as oldest_lsn
from pg_ls_waldir()
where name not ilike 'history' /* Skip .history files */
where name not ilike '%history%' /* Skip .history files */
order by modification desc limit 1
)
select pg_size_pretty(pg_wal_lsn_diff( pg_current_wal_lsn(),oldest_lsn))
Expand Down

0 comments on commit 98f0310

Please sign in to comment.