> What PG version is this, on what operating system? Do you have > redirect_stderr enabled? Sorry, I should have included that: PostgreSQL 8.1.3 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2) And yes, redirect_stderr = on. I have no definitive way of reproducing it, just a vague one: "hit the server with lots of queries". Some solution would be very welcome because once I have a "bad" log file like that it is very hard (at least for me) to clean it up by hand. George