Re: "Garbled" postgres logs

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tim Goodaire <tgoodair(at)ca(dot)afilias(dot)info>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: "Garbled" postgres logs
Date: 2007-04-03 19:35:25
Message-ID: 4612AC7D.4020400@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brad Nicholson 2007-04-03 19:47:02 Re: "Garbled" postgres logs
Previous Message Tom Lane 2007-04-03 19:02:56 Re: "Garbled" postgres logs