Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQ63n-0003uq-2v for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Jan 2017 05:30:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cQ63m-00027V-KU for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Jan 2017 05:30:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cQ63k-00025v-Kd for pgsql-hackers@postgresql.org; Sun, 08 Jan 2017 05:30:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cQ63e-0005Kc-2n for pgsql-hackers@postgresql.org; Sun, 08 Jan 2017 05:30:23 +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 v085UEuL020694; Sun, 8 Jan 2017 00:30:14 -0500 From: Tom Lane To: Jim Nasby cc: Pg Hackers , Karl Lehenbauer Subject: Re: Add support for SRF and returning composites to pl/tcl In-reply-to: <33035f75-26b0-29ed-7361-4c7f56a81471@BlueTreble.com> References: <8658.1478394740@sss.pgh.pa.us> <8785.1478456128@sss.pgh.pa.us> <0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com> <19165.1478615614@sss.pgh.pa.us> <22523.1483735511@sss.pgh.pa.us> <33035f75-26b0-29ed-7361-4c7f56a81471@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Sat, 07 Jan 2017 22:57:45 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20692.1483853414.1@sss.pgh.pa.us> Date: Sun, 08 Jan 2017 00:30:14 -0500 Message-ID: <20693.1483853414@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) 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 Jim Nasby writes: > On 1/6/17 2:45 PM, Tom Lane wrote: >> While I was checking the patch to verify that it didn't change any >> behavior, I noticed that it did, and there's a pre-existing bug here: >> pltcl_build_tuple_result is applying utf_e2u to the Tcl_GetString results, >> but surely that should be utf_u2e instead. Fortunately we haven't shipped >> this code yet. > Ugh. > For this patch lets just fix that (see attached). I already fixed it in HEAD. > Moving forward, I think it'd be good to improve this... Yeah, it's pretty ugly, but I'm not sure what would be a better design. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers