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

From Cook, Steve
Subject Re: is it possible to delete the psql log while psql is running?
Date
Msg-id D3BC99DA81D51E469CBC6A7E50AD469F03C57165@houusmb101.us.corp.nextiraone.com
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
cat /dev/null > name_of_log_to_truncate

 -----Original Message-----
From:     pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org]  On Behalf Of gabor
Sent:    Thursday, December 08, 2005 6:21 AM
To:    pgsql-general@postgresql.org
Subject:    [GENERAL] is it possible to delete the psql log while psql is running?


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"

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly


pgsql-general by date:

Previous
From: David Rysdam
Date:
Subject: Re: date format
Next
From: Dan Armbrust
Date:
Subject: Specify schema in jdbc connection string?