Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by postgresql.org (Postfix) with ESMTP id 54C8F475BB3; Tue, 30 Jul 2002 14:47:49 -0400 (EDT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.4/8.12.4) with ESMTP id g6UIkuus014875; Tue, 30 Jul 2002 12:46:56 -0600 (MDT) Date: Tue, 30 Jul 2002 12:32:50 -0600 (MDT) From: "scott.marlowe" To: pgsql-admin@postgresql.org Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] log sql? In-Reply-To: <20020730140939.E16703@mail.libertyrms.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailBodyFilter: Message body has not been filtered X-MailScanner: Found to be clean X-Archive-Number: 200208/9 X-Sequence-Number: 5124 On Tue, 30 Jul 2002, Andrew Sullivan wrote: > On Tue, Jul 30, 2002 at 09:53:23AM -0700, Laurette Cisneros wrote: > > Yes indeed...the size has reach 9.6M in 15 minutes...it is spewing a lot of > > info. Hmmm.... > > You really need some mechanism for rotating your logs if you are > going to use them. Otherwise, they become too unwieldy. If one has apache installed, one has the mechanism installed. Apache has a nice little log rotation utility called rotatelogs that can used for this purpose, just put it into the path of the postgres user and start the database like so: pg_ctl start | rotatelogs "$PGDATA/logs/pgsql" 86400 & where $PGDATA/logs is a directory you made and pgsql will be the name all your log files start with.