Re: is it possible to delete the psql log while psql is - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: is it possible to delete the psql log while psql is
Date
Msg-id 439852D6.2030805@wildenhain.de
Whole thread Raw
In response to is it possible to delete the psql log while psql is running?  (gabor <gabor@nekomancer.net>)
List pgsql-general
gabor schrieb:
> hi,
>
> i'd like to delete the postgresql log file
> (resides in /var/log/pgsql/postgres),
> because it has become too big.
>
> can i simply delete the file while postgresql is running?
>
> or do i have to stop postgresql first, and only delete the logfile after
> that?

echo -n >postgresql.log


delete will have no effect unless the last
process takes hands off the file.


HTH
Tino

pgsql-general by date:

Previous
From: gabor
Date:
Subject: is it possible to delete the psql log while psql is running?
Next
From: "Writer's Digest"
Date:
Subject: Special message brought to you by Writer's Digest