Re: Logfile purge

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: shyamkant(dot)dhamke(at)wipro(dot)com
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Logfile purge
Date: 2014-12-18 06:24:08
Message-ID: CAOR=d=3cbb-RrRAfWioCN3=_sWKQhQF87uJEyN0x2niWLa_Xug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Dec 17, 2014 at 10:09 PM, <shyamkant(dot)dhamke(at)wipro(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Harshad Adalkonda 2014-12-18 07:25:37 Re: Command to take only schema backup
Previous Message shyamkant.dhamke 2014-12-18 05:38:12 Command to take only schema backup