Re: current log file removal

Поиск
Список
Период
Сортировка
От Van Hoa Phan
Тема Re: current log file removal
Дата
Msg-id CAAaXBY0uQF+hs77TRGAJMgQTaJ4PMFLjGYErRx0EKXO3c4qNbg@mail.gmail.com
обсуждение исходный текст
Ответ на current log file removal  (Yambu <hyambu@gmail.com>)
Список pgsql-admin
Would this do?

cat /dev/null > my_log_file.log

On Fri, Nov 27, 2020 at 12:41 AM Yambu <hyambu@gmail.com> wrote:
Hi

How can I safely remove the log file that is being used  currently and zip it without interfering with the postgres server?

We are running out of space on the server and the logs are eating a lot of space, we need to zip them without first stopping the server.

regards

В списке pgsql-admin по дате отправления:

Предыдущее
От: Yambu
Дата:
Сообщение: current log file removal
Следующее
От: Holger Jakobs
Дата:
Сообщение: Re: Move base directory to different location