Setting for example KEEP_DATA_GENERATIONS=1 should make the latest full backup and its related intermediate incremental/archive backups disappear but it is not the case.
In order to reproduce that, simply set KEEP_DATA_GENERATIONS=1 in pg_rman.ini and then run two times pg_rman backup -b full. The oldest backup will NOT be deleted.
Looks like there is a lot of dead code in clean.c. Otsuka-san, are you planning to spend time looking at my patches?
Thanks for your report.
It takes is a little time, but I would like to take a look at your patches.
Please attach them.
Yes, thanks. I got something like 15-20 patches, fixing numerous issues and making the code more stable and more readable. Some of them change quite a bit of things, but core functionality remains unchanged. I have actually spent quite a long among of time to make pg_rman more enterprise-class in a fork on github => https://github.com/michaelpq/pg_rman
There are many things making me worrying about the current quality of the code: