mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
fix retention show message, when no policy is set
This commit is contained in:
@@ -68,6 +68,12 @@ do_show(time_t backup_id)
|
|||||||
int
|
int
|
||||||
do_retention_show(void)
|
do_retention_show(void)
|
||||||
{
|
{
|
||||||
|
if (retention_redundancy == 0 && retention_window == 0)
|
||||||
|
{
|
||||||
|
fprintf(stdout, "No retention policy is set\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stdout, "# retention policy\n");
|
fprintf(stdout, "# retention policy\n");
|
||||||
if (retention_redundancy > 0)
|
if (retention_redundancy > 0)
|
||||||
fprintf(stdout, "REDUNDANCY=%u\n", retention_redundancy);
|
fprintf(stdout, "REDUNDANCY=%u\n", retention_redundancy);
|
||||||
|
|||||||
Reference in New Issue
Block a user