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

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: is it possible to delete the psql log while psql is
Дата
Msg-id 439852D6.2030805@wildenhain.de
обсуждение исходный текст
Ответ на is it possible to delete the psql log while psql is running?  (gabor <gabor@nekomancer.net>)
Список 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 по дате отправления:

Предыдущее
От: gabor
Дата:
Сообщение: is it possible to delete the psql log while psql is running?
Следующее
От: "Writer's Digest"
Дата:
Сообщение: Special message brought to you by Writer's Digest