Re: current log file removal

From: Van Hoa Phan <s50600822(at)gmail(dot)com>
To: Yambu <hyambu(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: current log file removal
Date: 2020-11-26 13:53:04
Message-ID: CAAaXBY0uQF+hs77TRGAJMgQTaJ4PMFLjGYErRx0EKXO3c4qNbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Would this do?

cat /dev/null > my_log_file.log

On Fri, Nov 27, 2020 at 12:41 AM Yambu <hyambu(at)gmail(dot)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
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Holger Jakobs 2020-11-26 14:00:28 Re: Move base directory to different location
Previous Message Yambu 2020-11-26 13:40:38 current log file removal