pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: root <root@dennis.veritime.com>
To: William L James <BJames@inetmi.com>
To: pgsql-admin@postgresql.org
Subject: Re: Postgres/Postmaster logging and log rotation
Date: Wed, 7 Mar 2001 10:37:30 -0500
Message-ID: <01030710392300.30364@dennis.veritime.com> (raw)
In-Reply-To: <3AA64F95.F9323A84@inetmi.com>
References: <3AA64F95.F9323A84@inetmi.com>

Be sure to stop postgres, rotate your log (or move it out of the /var/log
directory and then rotate it), and restart postgresql.  That will solve your
problem.  Hopefully you don't need a 24x7 available database as this might take
a few seconds for your server to complete.

On Wed, 07 Mar 2001, William L James wrote:
> Hi there:
> 
> We are running PostgreSQL 7.0.2 on RedHat Linux 6.2 and
> have encountered a few strange problems that continue to
> elude us - namely INSERT and DELETE functions that end
> abnormally, but do not include any information as to why (the
> JDBC connection just seems to have gone away).  Trying to
> further diagnose the situation, I have been successful in starting
> the Postgres logging (by including the following in the postgresql
> script - su -l postgresql -c "/usr/bin/pg_ctl -D $PGDATA -p
> /usr/bin/postmaster start >>/var/log/postgresql 2>&1"), but
> when the weekly logrotate.d function kicks in, Postgres logging
> stops.  We also have trouble doing a simple restart - I wind up
> having to do a stop and then a start minutes later.  Can anyone
> explain how to get Postgres to log and to be able to rotate the
> log periodically?  Any information would be appreciated.
> 
> Thanks,
> Bill James
> I/NET, Inc.
> Email: mailto:bjames@inetmi.com
> WWW: http://www.inetmi.com
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://www.postgresql.org/search.mpl
-- 
Thanks, 


Rodney Hampton
veritime.com
248-528-9766



----Your analogies DO NOT need to work as long as your code DOES.




view thread (5+ messages)  latest in thread

Message-ID: <01030710392300.30364@dennis.veritime.com>
Permalink:  ../01030710392300.30364@dennis.veritime.com/
Also on:    postgresql.org/message-id/01030710392300.30364@dennis.veritime.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: root@dennis.veritime.com, BJames@inetmi.com
  Subject: Re: Postgres/Postmaster logging and log rotation
  In-Reply-To: <01030710392300.30364@dennis.veritime.com>
  References: <3AA64F95.F9323A84@inetmi.com> <01030710392300.30364@dennis.veritime.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