is it possible to delete the psql log while psql is running?

From: gabor <gabor(at)nekomancer(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: is it possible to delete the psql log while psql is running?
Date: 2005-12-08 12:20:56
Message-ID: 20051208122056.GA11830@core.realtime.sk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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?

thanks,
gabor

--
That's life for you, said McDunn. Someone always waiting for someone
who never comes home. Always someone loving something more than that
thing loves them. And after awhile you want to destroy whatever
that thing is, so it can't hurt you no more.
-- R. Bradbury, "The Fog Horn"

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GUNDUZ 2005-12-08 12:34:44 Re: how to check if a database exists programatically
Previous Message Devrim GUNDUZ 2005-12-08 12:20:09 Re: how to check if a database exists programatically