Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0MqK-0006qo-4I for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jan 2013 01:52:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0MqJ-000493-3w for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jan 2013 01:52:03 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0MqH-00048y-KM for pgsql-hackers@postgresql.org; Wed, 30 Jan 2013 01:52:01 +0000 Received: from mail-qe0-f47.google.com ([209.85.128.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0MqG-0002ZT-2Q for pgsql-hackers@postgresql.org; Wed, 30 Jan 2013 01:52:00 +0000 Received: by mail-qe0-f47.google.com with SMTP id 2so498741qea.34 for ; Tue, 29 Jan 2013 17:51:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-gm-message-state; bh=4xeaNtJKU7VNaX1n/VNA1IlPgwjjZ3dyCFpLpuc46A0=; b=kyITWPKRFH9VpA8/ww4nfY9vNGYPW/Fnpcl4RfGOtqML61JYd6CdklSO1twoWxYnes yP/u+wVyR2ZIvPINpsm/SbKmG3gUvGAhhgCJgv62lwlKGJ0IaNcBRxtoe36hefnuIy3H LLetVI3Oy9tHbrLLJz2vij2oPfO9+/kXEHGCa4ApV+yljYw71uI1oLoX1+9ZLbUvxb0g X1G2F1ZqEiq0MCoXlSX1/cLkyNms4Jt/TCh8553e07htR4AuNyTUu90djH4NEeYIjfVz nnrrtLmeJ8aaWBvkDGFZ1MERBV4kajekO55CYrFnx3H+4lsJNg+wZMNQdwWulrBOF5fQ tUIA== X-Received: by 10.224.194.74 with SMTP id dx10mr3326230qab.1.1359510719331; Tue, 29 Jan 2013 17:51:59 -0800 (PST) Received: from tornado.leadboat.com (ip68-105-236-221.hr.hr.cox.net. [68.105.236.221]) by mx.google.com with ESMTPS id hr1sm9129857qeb.3.2013.01.29.17.51.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jan 2013 17:51:58 -0800 (PST) Date: Tue, 29 Jan 2013 20:51:55 -0500 From: Noah Misch To: Tom Lane Cc: Alexander Law , pgsql-hackers , Magnus Hagander , Andrew Dunstan Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console Message-ID: <20130130015155.GD3524@tornado.leadboat.com> References: <20121015094136.GA4627@tornado.leadboat.com> <20121015233817.GC13670@tornado.leadboat.com> <20121018154650.GA3763@alvh.no-ip.org> <51001879.3000207@gmail.com> <5100F3F6.3050107@2ndQuadrant.com> <51013C2C.5020703@dunslane.net> <20130124161954.GA2448@tornado.leadboat.com> <5101A1C4.3020407@dunslane.net> <5107656C.1050400@gmail.com> <28316.1359471244@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28316.1359471244@sss.pgh.pa.us> User-Agent: Mutt/1.5.18 (2008-05-17) X-Gm-Message-State: ALoCoQn9XJPBjU0hDKAniSgphcLIvlgWA/pHa0jkZIYf7F7+WTNXaCJaH4BK7sekslfd+43e1iyy X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Jan 29, 2013 at 09:54:04AM -0500, Tom Lane wrote: > Alexander Law writes: > > Please look at the following l10n bug: > > http://www.postgresql.org/message-id/502A26F1.6010109@gmail.com > > and the proposed patch. > > That patch looks entirely unsafe to me. Neither of those functions > should be expected to be able to run when none of our standard > infrastructure (palloc, elog) is up yet. > > Possibly it would be safe to do this somewhere around where we do > GUC initialization. Even then, I wouldn't be surprised to find problematic consequences beyond error display. What if all the databases are EUC_JP, the platform encoding is KOI8, and some postgresql.conf settings contain EUC_JP characters? Does the postmaster not rely on its use of SQL_ASCII to allow those values? I would look at fixing this by making the error output machinery smarter in this area before changing the postmaster's notion of server_encoding. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers