Re: nls and server log - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: nls and server log
Date
Msg-id 54A2027C.7070708@2ndquadrant.com
Whole thread Raw
In response to Re: nls and server log  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: nls and server log  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
On 12/30/2014 06:39 AM, Jim Nasby wrote:
>>
> 
> How much of this issue is caused by trying to machine-parse log files?
> Is a better option to improve that case, possibly doing something like
> including a field in each line that tells you the encoding for that entry?

That'd be absolutely ghastly. You couldn't just view the logs with
'less' or a text editor if your logs had mixed encodings, you'd need
some kind of special PostgreSQL log viewer tool.

Why would we possibly do that when we could just emit utf-8 instead?

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: CATUPDATE confusion?
Next
From: Jim Nasby
Date:
Subject: Re: Detecting backend failures via libpq / DBD::Pg