Re: BUG #7493: Postmaster messages unreadable in a Windows console

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Alexander Law <exclusion(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console
Date: 2013-02-12 02:15:32
Message-ID: 5238.1360635332@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general pgsql-hackers

Noah Misch <noah(at)leadboat(dot)com> writes:
> On Sun, Feb 10, 2013 at 06:47:30PM -0500, Tom Lane wrote:
>> The key problem, ISTM, is that it's not at all clear what encoding to
>> expect the incoming data to be in. I'm concerned about trying to fix
>> that by assuming it's in some "platform encoding" --- for one thing,
>> while that might be a well-defined concept on Windows, I don't believe
>> it is anywhere else.

> GetPlatformEncoding() imposes a sufficiently-portable definition. I just
> don't think that definition leads to a value that can be presumed desirable
> and adequate for postgresql.conf.

Nah, GetPlatformEncoding is utterly useless for this purpose --- restart
the server with some other environment, and bad things will happen.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Stark 2013-02-12 03:22:17 Re: BUG #7493: Postmaster messages unreadable in a Windows console
Previous Message Noah Misch 2013-02-12 02:10:45 Re: BUG #7493: Postmaster messages unreadable in a Windows console

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2013-02-12 02:51:09 Re: Installing Postgress 8.0.5 in Ubuntu 10.12
Previous Message Noah Misch 2013-02-12 02:10:45 Re: BUG #7493: Postmaster messages unreadable in a Windows console

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2013-02-12 03:22:17 Re: BUG #7493: Postmaster messages unreadable in a Windows console
Previous Message Noah Misch 2013-02-12 02:10:45 Re: BUG #7493: Postmaster messages unreadable in a Windows console