pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alfred Perlstein <bright@wintelcom.net>
To: The Hermit Hacker <scrappy@hub.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: [7.0.2] rotating log files ...
Date: Mon, 28 Aug 2000 11:27:38 -0700
Message-ID: <20000828112738.U1209@fw.wintelcom.net> (raw)
In-Reply-To: <Pine.BSF.4.21.0008281456510.564-100000@thelab.hub.org>
References: <Pine.BSF.4.21.0008281456510.564-100000@thelab.hub.org>

* The Hermit Hacker <scrappy@hub.org> [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



view thread (17+ messages)  latest in thread

Message-ID: <20000828112738.U1209@fw.wintelcom.net>
Permalink:  ../20000828112738.U1209@fw.wintelcom.net/
Also on:    postgresql.org/message-id/20000828112738.U1209@fw.wintelcom.net

 · 

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: bright@wintelcom.net, scrappy@hub.org
  Subject: Re: [7.0.2] rotating log files ...
  In-Reply-To: <20000828112738.U1209@fw.wintelcom.net>
  References: <Pine.BSF.4.21.0008281456510.564-100000@thelab.hub.org> <20000828112738.U1209@fw.wintelcom.net>

* 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