Hi! > 26 июня 2019 г., в 19:22, Christoph Berg <m...@debian.org> написал(а): > > Re: Andrey Borodin 2019-06-19 > <4178a7b3-b742-49d7-afa9-fcb3439a0...@yandex-team.ru> >> On my observation - yes, descriptor 4 is no longer in lsof. > > Ah, I had not noticed the "4" before. Only 1 and 2 are expected. > We can simply close() that one after dup2()'ing it to stdout/stderr. > > Thanks for spotting!
Thanks for pushing fix for this. Maybe we can somehow get rid of 1 and 2 attached to logfile (that will be logrotated and deleted)? Can we redirect output to some temporary file and after pg_ctl append this file to logfile? I simply want to be able to delete this file via logrotate... Best regards, Andrey Borodin.