Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfZqs-00049y-Ew for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2015 20:44:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZfZqq-0003q7-4t for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2015 20:44:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZfZqp-0003pw-K4 for pgsql-bugs@postgresql.org; Fri, 25 Sep 2015 20:44:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZfZqn-0007kS-3X for pgsql-bugs@postgresql.org; Fri, 25 Sep 2015 20:44:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8PKi7S3020833; Fri, 25 Sep 2015 16:44:07 -0400 From: Tom Lane To: Michal Leinweber cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13638: Exception texts from plperl has bad encoding In-reply-to: References: <20150925112345.26913.28407@wrigleys.postgresql.org> <18105.1443208708@sss.pgh.pa.us> <18478.1443209624@sss.pgh.pa.us> Comments: In-reply-to Michal Leinweber message dated "Fri, 25 Sep 2015 22:15:34 +0200" Date: Fri, 25 Sep 2015 16:44:07 -0400 Message-ID: <20832.1443213847@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michal Leinweber writes: > The problem is not only with elog call, but it also fires if plpgsql > code called from plperl function raises exception. Hmm, yeah, there are a whole bunch of instances of that croak("%s", edata->message) pattern, and most of them don't have an ancestral SV to work from. So we'll need a more general solution anyway, and it may not be worth changing do_util_elog() to work in a fundamentally different way than the rest. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs