From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Csaba Nagy <nagy(at)ecircle-ag(dot)com> |
Cc: | Gábor Farkas <gabor(at)nekomancer(dot)net>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: is it possible to delete the psql log while psql is |
Date: | 2005-12-08 14:04:58 |
Message-ID: | 20051208140452.GB25312@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Csaba Nagy | 2005-12-08 14:09:29 | Re: is it possible to delete the psql log while psql is |
Previous Message | Mike Rylander | 2005-12-08 14:00:06 | Re: Memory Leakage Problem |