From: Michael Paquier <michael@paquier.xyz>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: Problem with tupdesc in jsonb_to_recordset
Date: Wed, 11 Jul 2018 20:30:48 +0900
Message-ID: <20180711113048.GF14301@paquier.xyz> (raw)
In-Reply-To: <87fu0qkrfr.fsf@news-spur.riddles.org.uk>
References: <CA+q6zcWzN9ztCfR47ZwgTr1KLnuO6BAY6FurxXhovP4hxr+yOQ@mail.gmail.com>
<20180711062713.GA14301@paquier.xyz>
<20180711073916.GD14301@paquier.xyz>
<87fu0qkrfr.fsf@news-spur.riddles.org.uk>
On Wed, Jul 11, 2018 at 11:38:46AM +0100, Andrew Gierth wrote:
> My first approach - assuming that update_cached_tupdesc has good reason
> to make a copy, which I'm not convinced is the case - would be to simply
> make a per-query-context copy of the tupdesc to assign to rsi.setDesc in
> order to conform to the call protocol.
I see what you are coming at here, thanks for the input. I am not
really convinced that update_cached_tupdesc needs to do a new copy
either, but let's see what Tom has to say on the matter. That's his
feature and his code.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-bugs@postgresql.org
Cc: michael@paquier.xyz, andrew@tao11.riddles.org.uk, 9erthalion6@gmail.com, pgsql-hackers@postgresql.org, tgl@sss.pgh.pa.us
Subject: Re: Problem with tupdesc in jsonb_to_recordset
In-Reply-To: <20180711113048.GF14301@paquier.xyz>
References: <CA+q6zcWzN9ztCfR47ZwgTr1KLnuO6BAY6FurxXhovP4hxr+yOQ@mail.gmail.com> <20180711062713.GA14301@paquier.xyz> <20180711073916.GD14301@paquier.xyz> <87fu0qkrfr.fsf@news-spur.riddles.org.uk> <20180711113048.GF14301@paquier.xyz>
* 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