Re: current log file removal - Mailing list pgsql-admin

From Van Hoa Phan
Subject Re: current log file removal
Date
Msg-id CAAaXBY0uQF+hs77TRGAJMgQTaJ4PMFLjGYErRx0EKXO3c4qNbg@mail.gmail.com
Whole thread Raw
In response to current log file removal  (Yambu <hyambu@gmail.com>)
List 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 by date:

Previous
From: Yambu
Date:
Subject: current log file removal
Next
From: Holger Jakobs
Date:
Subject: Re: Move base directory to different location