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

Поиск
Список
Период
Сортировка
От Cook, Steve
Тема Re: is it possible to delete the psql log while psql is running?
Дата
Msg-id D3BC99DA81D51E469CBC6A7E50AD469F03C57165@houusmb101.us.corp.nextiraone.com
обсуждение исходный текст
Ответ на is it possible to delete the psql log while psql is running?  (gabor <gabor@nekomancer.net>)
Список 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 по дате отправления:

Предыдущее
От: David Rysdam
Дата:
Сообщение: Re: date format
Следующее
От: Dan Armbrust
Дата:
Сообщение: Specify schema in jdbc connection string?