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

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: is it possible to delete the psql log while psql is
Дата
Msg-id 20051208140452.GB25312@svana.org
обсуждение исходный текст
Ответ на Re: is it possible to delete the psql log while psql is  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: is it possible to delete the psql log while psql is  (Csaba Nagy <nagy@ecircle-ag.com>)
Список pgsql-general
On Thu, Dec 08, 2005 at 02:43:44PM +0100, Csaba Nagy wrote:
> Gabor,
>
> Short answer: you'll have to restart.
>
> Long answer:
> It depends a lot on your OS... on windows I bet you can't delete it, the
> OS will prevent you to do it (you'll get some error).

Note: on Linux I've had success with simply truncating the file using:

: > [filename]

This does free up the space used straightaway. Depending on the mode
the file was opened with it may also reset the position the postmaster
writes at.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Re: Memory Leakage Problem
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: is it possible to delete the psql log while psql is