Re: is it possible to delete the psql log while psql is

From: "Thies C(dot) Arntzen" <thies(at)thieso(dot)net>
To: Ed L(dot) <pgsql(at)bluepolka(dot)net>
Cc: "Thies C(dot) Arntzen" <thies(at)thieso(dot)net>, pgsql-general(at)postgresql(dot)org, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, gabor <gabor(at)nekomancer(dot)net>
Subject: Re: is it possible to delete the psql log while psql is
Date: 2005-12-09 07:29:16
Message-ID: A12BB711-8D35-46F2-809F-71A276B920B7@thieso.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

use "cp /dev/null pqsql.log" to truncate the logfile "in place" and
free some space.

re, thies

Am 08.12.2005 um 23:26 schrieb Ed L.:

> On Thursday December 8 2005 9:19 am, Oleg Bartunov wrote:
>> I'd do
>> echo > pgql.log
>
> That won't free any space from an open file. You have to stop
> postgresql first in order to close the file, or use log file
> rotation and wait until it rotates out to a closed state.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message gabor 2005-12-09 07:45:37 after vacuum, db is still "growing" :(
Previous Message Kathy Lo 2005-12-09 04:15:44 Re: memory leak under heavy load?