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

From: "Cook, Steve" <STEVE(dot)COOK(at)NEXTIRAONE(dot)COM>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: is it possible to delete the psql log while psql is running?
Date: 2005-12-08 15:34:16
Message-ID: D3BC99DA81D51E469CBC6A7E50AD469F03C57165@houusmb101.us.corp.nextiraone.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

cat /dev/null > name_of_log_to_truncate

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of gabor
Sent: Thursday, December 08, 2005 6:21 AM
To: pgsql-general(at)postgresql(dot)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(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-12-08 15:35:50 Re: is it possible to delete the psql log while psql is
Previous Message Csaba Nagy 2005-12-08 14:09:29 Re: is it possible to delete the psql log while psql is