pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Karl Lehenbauer <karl@flightaware.com>
Subject: Re: Add support for SRF and returning composites to pl/tcl
Date: Sun, 08 Jan 2017 00:30:14 -0500
Message-ID: <20693.1483853414@sss.pgh.pa.us> (raw)
In-Reply-To: <33035f75-26b0-29ed-7361-4c7f56a81471@BlueTreble.com>
References: <f2134651-14b3-efeb-f274-c69f3c084031@BlueTreble.com>
	<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>
	<d2c6425a-d9e0-f034-f774-4a872c234d89@BlueTreble.com>
	<22523.1483735511@sss.pgh.pa.us>
	<33035f75-26b0-29ed-7361-4c7f56a81471@BlueTreble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Jim Nasby <Jim.Nasby@bluetreble.com> 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



view thread (11+ messages)

Message-ID: <20693.1483853414@sss.pgh.pa.us>
Permalink:  ../20693.1483853414@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20693.1483853414@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Jim.Nasby@bluetreble.com, karl@flightaware.com
  Subject: Re: Add support for SRF and returning composites to pl/tcl
  In-Reply-To: <20693.1483853414@sss.pgh.pa.us>
  References: <f2134651-14b3-efeb-f274-c69f3c084031@BlueTreble.com> <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> <d2c6425a-d9e0-f034-f774-4a872c234d89@BlueTreble.com> <22523.1483735511@sss.pgh.pa.us> <33035f75-26b0-29ed-7361-4c7f56a81471@BlueTreble.com> <20693.1483853414@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox