pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inpreet Singh <Singh.Inpreet@netsity.com>
To: pgsql-admin@postgresql.org
Subject: Log File Maintainance
Date: Mon, 11 Apr 2005 10:50:01 +0530
Message-ID: <00e901c53e56$1c79efb0$3c67a8c0@netsity.com> (raw)

Hello,
 
I am working on live server where we have installed postgres database as
our back end. But now the problem is due to continues work on postgres,
size of log files has become problem for us. And the partition where our
postgres exists is full. Postmaster is not working now. I tried to
rotate log file by adding lines in postgresql.conf
****************************************************
syslog = 2                      # range 0-2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'
********************************
But it doesn't working. Is there anything else I had to due in this
respect. I think I am missing some point.
 
Also I had written rotate script and save it at location
:/etc/logrotate.d
******************************************************
/usr/local/pgsql/data/serverlog
{
        weekly
        notifempty
        rotate 2
        create
        /bin/kill -HUP `cat /usr/local/pgsql/data/postmaster.pid 2>
/dev/null` 2> /dev/null || true
        endscript
}
***************************************************
But when I am executing following command it is flagging error
**************************************************
[root@iemstesting logrotate.d]# logrotate -f -v postgres
reading config file postgres
reading config info for /usr/local/pgsql/data/logfile
 
error: postgres:6 unexpected log filename
*************************************************
 
Please guide me thru...............
Inpreet Singh
 

view thread (3+ messages)  latest in thread

Message-ID: <00e901c53e56$1c79efb0$3c67a8c0@netsity.com>
Permalink:  ../00e901c53e56$1c79efb0$3c67a8c0@netsity.com/
Also on:    postgresql.org/message-id/00e901c53e56$1c79efb0$3c67a8c0@netsity.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Singh.Inpreet@netsity.com
  Subject: Re: Log File Maintainance
  In-Reply-To: <00e901c53e56$1c79efb0$3c67a8c0@netsity.com>
  References: <00e901c53e56$1c79efb0$3c67a8c0@netsity.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox