Received: from fw.wintelcom.net (bright@ns1.wintelcom.net [209.1.153.20]) by hub.org (8.10.1/8.10.1) with ESMTP id e7SIReC68606 for ; Mon, 28 Aug 2000 14:27:40 -0400 (EDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7SIRcs14209; Mon, 28 Aug 2000 11:27:38 -0700 (PDT) Date: Mon, 28 Aug 2000 11:27:38 -0700 From: Alfred Perlstein To: The Hermit Hacker Cc: pgsql-admin@postgresql.org Subject: Re: [7.0.2] rotating log files ... Message-ID: <20000828112738.U1209@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from scrappy@hub.org on Mon, Aug 28, 2000 at 02:59:12PM -0300 X-Archive-Number: 200008/63 * The Hermit Hacker [000828 11:19] wrote: > > can someone recommend on how to rotate the following log files without > having to stop/start the server? > > postgres 85333 pgsql 1w VREG 13,131084 995 762037 /pgsql/logs/postmaster.5432.61308 > postgres 85333 pgsql 2w VREG 13,131084 316501241 762038 /pgsql/logs/5432.61308 > > its the 316meg one and growing that I'm more interested in doing, obviously ... This may not work: make a copy of it and try running a program that calls ftruncate() on the file. I think postgresql needs some utility to do this, I may whip one up when time allows, it should be trivial. -Alfred