Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f2CJwZx54960 for ; Mon, 12 Mar 2001 14:58:35 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from veritime.com (dennis.veritime.com [64.240.90.194]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f27FdSx91338 for ; Wed, 7 Mar 2001 10:39:28 -0500 (EST) (envelope-from root@dennis.veritime.com) Received: (qmail 31985 invoked by uid 105); 7 Mar 2001 15:39:24 -0000 Received: from root@dennis.veritime.com by dennis.veritime.com with qmail-scanner-0.90 (fsecure: 4.08/2030/2001-03-01/2001-03-02/2000-00-08. . Clean. Processed in 1.166324 secs); 07/03/2001 10:39:23 Received: from dennis.veritime.com (root@64.240.90.194) by dennis.veritime.com with SMTP; 7 Mar 2001 15:39:23 -0000 From: root To: William L James , pgsql-admin@postgresql.org Subject: Re: Postgres/Postmaster logging and log rotation Date: Wed, 7 Mar 2001 10:37:30 -0500 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain References: <3AA64F95.F9323A84@inetmi.com> In-Reply-To: <3AA64F95.F9323A84@inetmi.com> MIME-Version: 1.0 Message-Id: <01030710392300.30364@dennis.veritime.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/81 X-Sequence-Number: 927 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.