1
0
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:
Grigory Smolkin 2017-12-15 15:20:10 +03:00
parent f436888f46
commit 7925496e07

View File

@ -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;