Re: Logfile purge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17, 2014 at 10:09 PM,  <shyamkant.dhamke@xxxxxxxxx> 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.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux