Skip to content

Commit 7925496

Browse files
committed
allow to use delete --expired --wal even without established retention policy
1 parent f436888 commit 7925496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/delete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ do_retention_purge(void)
139139
if (retention_window > 0)
140140
elog(LOG, "WINDOW=%u", retention_window);
141141

142-
if (retention_redundancy == 0 && retention_window == 0)
142+
if (retention_redundancy == 0 && retention_window == 0 && !delete_wal)
143143
{
144144
elog(WARNING, "Retention policy is not set");
145145
return 0;

0 commit comments

Comments
 (0)