Re: Problem with tupdesc in jsonb_to_recordset - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Problem with tupdesc in jsonb_to_recordset
Date
Msg-id 20180711113048.GF14301@paquier.xyz
Whole thread Raw
In response to Re: Problem with tupdesc in jsonb_to_recordset  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Preferring index-only-scan when the cost is equal
Next
From: Michael Paquier
Date:
Subject: Re: Negotiating the SCRAM channel binding type