We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc88d0b + b8ac5d5 commit 98f0310Copy full SHA for 98f0310
sql/WAL/distance_wals_from_dir.sql
@@ -2,7 +2,7 @@
2
with oldest_mod_walfile as (
3
select (substring(name from 9 for 8) || '/' || substring(name from 17 for 8 ))::pg_lsn as oldest_lsn
4
from pg_ls_waldir()
5
- where name not ilike 'history' /* Skip .history files */
+ where name not ilike '%history%' /* Skip .history files */
6
order by modification desc limit 1
7
)
8
select pg_size_pretty(pg_wal_lsn_diff( pg_current_wal_lsn(),oldest_lsn))
0 commit comments