mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-09 14:33:17 +02:00
allow to use delete --expired --wal even without established retention policy
This commit is contained in:
parent
f436888f46
commit
7925496e07
@ -139,7 +139,7 @@ do_retention_purge(void)
|
||||
if (retention_window > 0)
|
||||
elog(LOG, "WINDOW=%u", retention_window);
|
||||
|
||||
if (retention_redundancy == 0 && retention_window == 0)
|
||||
if (retention_redundancy == 0 && retention_window == 0 && !delete_wal)
|
||||
{
|
||||
elog(WARNING, "Retention policy is not set");
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user