Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdDKq-0007Mf-6D for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jul 2018 11:31:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdDKo-0008M6-KT for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jul 2018 11:31:02 +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.89) (envelope-from ) id 1fdDKm-0008Lz-Uj for pgsql-hackers@lists.postgresql.org; Wed, 11 Jul 2018 11:31:02 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdDKj-0000PD-QZ for pgsql-hackers@postgresql.org; Wed, 11 Jul 2018 11:30:59 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 03D2B250; Wed, 11 Jul 2018 07:30:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Jul 2018 07:30:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=IMpRGSujjZiiLM8YjUIg196L2fVBuwoetkh/XkNVxi0=; b=v4nZl4X9 xFwGTrZiIuXS4k5seCkBIP6tHJSPJL1VAvCo4RA4oKza371NsvdhBYc+gQu6lHvb e1ESi22XAjTNeQ8DwEbWYGVEkHKpWNVvlXmh6gsllvlfhwMOhZJbnYWbqNFB2uJ5 5X2D9mEppFvAIcZPKhgISi3MITfpbkcIL/hRM8hLWPT/3tUH7aSo43l6mJI/xVEI Fq+ZBCIDN+wjtzhb3ZceNRpl5vnAyfpx0pPj3jNl60ImtG+xDcPVnNaI11ssDzMA RPYavZm8xLwj3NBYynkn3Ls4ahgBYKAWAds9fg9EDjqeXwDMqNCu1n5kRm3eWJ54 c2ZOu7xzXANJ/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=IMpRGSujjZiiLM8YjUIg196L2fVBu woetkh/XkNVxi0=; b=cc1D1fGEWO6Wu5gFDk6LEMRH3PJg3G1M+QvoMu+wG4y0N G254leDQVqU9wd4VVGfJUUNR8qqx6375p0WV0TM2nPoVuJ2QqZ+oC2xaMrtO/tdG eqcCpvcRJgITM3MpeoVtd2wXPKw2Xl3MX6EL70BlMtyY6JDFAZamwG28v4eqrwQn gnXauQ0FzFNBZM5bnPcYg9YukmumsPXlYb7fC4SpqAegJnWR0tLbNFmVqRSvNFQb 9CZOXRdj+68FSo7uWE7/HUcI73vo0wAWgjzEMqLVztuOpWtTXe1Vp+T8ZwY4yviK E5X2/be2ihFc8ySYBETkN7TkCGy8ZHP9s8oIeDO/Q== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 734F4E4270; Wed, 11 Jul 2018 07:30:52 -0400 (EDT) Date: Wed, 11 Jul 2018 20:30:48 +0900 From: Michael Paquier To: Andrew Gierth Cc: Dmitry Dolgov <9erthalion6@gmail.com>, PostgreSQL-development , Tom Lane Subject: Re: Problem with tupdesc in jsonb_to_recordset Message-ID: <20180711113048.GF14301@paquier.xyz> References: <20180711062713.GA14301@paquier.xyz> <20180711073916.GD14301@paquier.xyz> <87fu0qkrfr.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8bBEDOJVaa9YlTAt" Content-Disposition: inline In-Reply-To: <87fu0qkrfr.fsf@news-spur.riddles.org.uk> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --8bBEDOJVaa9YlTAt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --8bBEDOJVaa9YlTAt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAltF6mgACgkQnvQgOdby QH0lEg//U1ElwhNhkwXuNVZVbd9TRZBBYZXCi3BTwO3+5VW/0cr8mTMEBCYWH4Hs hOPsluHm2XTeQsGASA9fcklAzWBsupRFBYGXjxraqe0Nzq5O93X8Uz0cPDjYOC1N 4tSCUXOrXZK/eJETSVHlD7ROMirQtu1K7D8fUdirZ7o77KDHP5dXC1JYdBkV7bgk XJt5aSQKVXB2xXbIz0O6uWZFjznzsZV/EqTr0Uf9pM3ZJW5u9snTKVtS6u4f73Si kMGgY4fuqoodPZiZF3zb3SXwFJrq+f9/hJsTsCdHp/SC/e3p0rtXAmVZKMgIb+8c YHkeBm1tPqroq1Dnq1CIhL9pBFGQAxFWch42VkNvvyekhfg/KJXBp9I81GfinDgb 2D0qCez0MBaRJPGznP5+RNgouH5g3v8nh1YPsSQpjdjQGPXzRBDqUlvNpkivee9m By0/BVgrGO/xKsxRsliFM4n8HJXvdeHWEufBfV23MsUkpYQsIkG6LBeWPVQclDC2 mplvjl5II/PdDtUIE8LSpEyJWzVsJ8/eeEbCm1NseVV6ZYjtD6aVMsPqLTi0Ym8S lCEeFNDurSNW9wN56VZP751OQmx8TOGNpWP93NOSt53V6Bsh+w4ndRvcP9uS+XOk +UsVp4BSwBlygG8iMkJf8HacqRAdhlG26z6QdjF+W5SdCGrM5uQ= =kAOT -----END PGP SIGNATURE----- --8bBEDOJVaa9YlTAt--