Re: Logfile purge - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Logfile purge
Date
Msg-id CAOR=d=3cbb-RrRAfWioCN3=_sWKQhQF87uJEyN0x2niWLa_Xug@mail.gmail.com
Whole thread Raw
In response to Logfile purge  (<shyamkant.dhamke@wipro.com>)
List pgsql-admin
On Wed, Dec 17, 2014 at 10:09 PM,  <shyamkant.dhamke@wipro.com> wrote:
> Hi,
>
> I need help on PostGres 9.2 version. How to purge the logfile generated by
> the postgres server? How I can restrict the size of this file?

Rotating logs is kinda the job of the OS (generally speaking).
Assuming you're on a modern unix like OS like Ubuntu, Debian, Redhat
or possibly BSD (Haven't used it in a few years) you will set your
postgresql.conf file to syslog mode, and then the rest of the
configuration is syslog and logrotate. google those two.

--
To understand recursion, one must first understand recursion.


pgsql-admin by date:

Previous
From:
Date:
Subject: Command to take only schema backup
Next
From: Harshad Adalkonda
Date:
Subject: Re: Command to take only schema backup