Re: "Garbled" postgres logs - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: "Garbled" postgres logs
Date
Msg-id 4612AC7D.4020400@dunslane.net
Whole thread Raw
In response to Re: "Garbled" postgres logs  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: "Garbled" postgres logs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Note to hackers: would it make sense to use write() instead of
> fprintf() in send_message_to_server_log to avoid any possibility
> of stdio deciding to fragment the message?  Possibly there'd be
> some marginal efficiency gain too.
>   

What about in write_syslogger_file_binary()? Since redirect_stderr is 
set true in the case reported, wont that be what does the writing?

cheers

andrew



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: "Garbled" postgres logs
Next
From: Brad Nicholson
Date:
Subject: Re: "Garbled" postgres logs