Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltDLr-0001Go-7r for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jun 2021 17:59:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltDLq-00086z-78 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jun 2021 17:59:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltDLp-00086r-Vb for pgsql-hackers@lists.postgresql.org; Tue, 15 Jun 2021 17:59:49 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltDLl-0005LX-3r for pgsql-hackers@lists.postgresql.org; Tue, 15 Jun 2021 17:59:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4SpUc/xf7dNA7scXA5hvmFKefmQKMgqyeGXYUCtdnQ4=; b=tTRFwbHI7OUzId1RZWi1MXzItc HFTXe49Awv+UziRnPxQuJ7Fud3r5NvCJ6l696TXV6Cu8Xbj4praAtFrr8XJ+viuKX5U+sioMoOJnJ PvhrkNQLOZ0ByGPt9n/h/lHJOo7EUry0AsZ1pR5oy9saWELDHGnlSlIN7n+36VjrPA2yC5vfcDXD0 flIw5JHBpQfHMsQWxJUiuYKBPtqtzOS8mO/crcnX7sSI8ScPtllADqQ/gFOF/8+5eu4MGjuUk7LEt 6I9I2JkXXVieTbWmO2Ncv1qxbYomr6zQv1EGF/M91L6hgwGoxCdNv1n3ycqLcrKsUM6eZ8eAZCrqb OoD0o8/A==; Received: from [2600:380:5866:a94c:dd0d:6643:2637:461e] (helo=Ph33rHippo.local) by meldrar.postgresql.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltDLi-0000Id-Pz; Tue, 15 Jun 2021 17:59:44 +0000 Subject: Re: unnesting multirange data types To: Tom Lane , Alvaro Herrera Cc: Alexander Korotkov , Justin Pryzby , Zhihong Yu , PostgreSQL Hackers References: <202106151728.5kbtjl7or3g2@alvherre.pgsql> <429332.1623779540@sss.pgh.pa.us> From: "Jonathan S. Katz" Message-ID: Date: Tue, 15 Jun 2021 13:59:38 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <429332.1623779540@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Lu579TpMefqxNw3wZ369uPQ9eMYjlnL49" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:380:5866:a94c:dd0d:6643:2637:461e (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Lu579TpMefqxNw3wZ369uPQ9eMYjlnL49 Content-Type: multipart/mixed; boundary="Qm3U5ShVpgztagKVSOKB3VzI5wAs953Z4"; protected-headers="v1" From: "Jonathan S. Katz" To: Tom Lane , Alvaro Herrera Cc: Alexander Korotkov , Justin Pryzby , Zhihong Yu , PostgreSQL Hackers Message-ID: Subject: Re: unnesting multirange data types References: <202106151728.5kbtjl7or3g2@alvherre.pgsql> <429332.1623779540@sss.pgh.pa.us> In-Reply-To: <429332.1623779540@sss.pgh.pa.us> --Qm3U5ShVpgztagKVSOKB3VzI5wAs953Z4 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/15/21 1:52 PM, Tom Lane wrote: > Alvaro Herrera writes: >> On 2021-Jun-15, Tom Lane wrote: >>> I think this ought to be reverted and reviewed more carefully. >=20 >> It seems to me that removing the cast-to-range[] is a sufficient fix, >> and that we can do with only the unnest part for pg14; the casts can b= e >> added in 15 (if at all). That would mean reverting only half the patc= h. >=20 > Might be a reasonable solution. But right now I'm annoyed that the > buildfarm is broken, and I'm also convinced that this didn't get > adequate testing. I had focused testing primarily on the "unnest" cases that I had described in my original note. I did a couple of casts and had no issue; I did not test with pg_dump / pg_upgrade, but noting to do so in the future in cases like this. > I think "revert and reconsider" is the way > forward for today. I don't want the buildfarm broken so I'm fine if this is the best way forward. If we can keep the "unnest" functionality I would strongly suggest it as that was the premise of the original note to complete the utility of multiranges for v14. The casting, while convenient, is not needed. Jonathan --Qm3U5ShVpgztagKVSOKB3VzI5wAs953Z4-- --Lu579TpMefqxNw3wZ369uPQ9eMYjlnL49 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEE+oS2la8r95ogZD/x8QSccp8cZScFAmDI6ooFAwAAAAAACgkQ8QSccp8cZSdD 9A//cIbaxdmo/EDmS/X+Geu7Z1aq6fZ7CcI2Rp7N3YqNM4/hqhae1QiGfZUM3TtTmy04ohW00G0O iFnjbAGew+hHQiRFGFYHlYuK+QNevJbYJG73r88vpNyGO2TW71l23vJ1NS4sHYG18XuGrapyWWef H7Y+NO1f4nm0l30ouo3R1x0XpKft6Vww6doQJww3y6QWLJUr2OisRt6fQt+Aii0CB/Tow+zB88WZ XRKelX9PRBdEjzwtDbqNLKFeBu9PtUxleiuOVjeg5zzNEAzhjg6Zi2Mi8nHnWKhZOvL5xNcS1HLL epi0iFFC4twaGahghTO8iJbWJZu+3K0l8sJpnysqHQsMMy+sMonq54fFY8x8z0V+Kzzb5DiTks4f r2cwZ6IX+eAAorW3FKF+wpu/QxzPKCwCLk9kS0bJUFyTIwFEvlE+zcCb85MobZ6y5gRtLIJ0GP90 Fb+oMJleqkyL4iH56qIJO8WQFbOxeUymm2vzScaIPjt9LMOzEOrADkKaO+jibrlyaBV1O2vIpmiq 53fF8ftv6bJXnqufYguHXwbNpTUqq+kevEUMXLp0HYnXKWyzYcYvtc14yy1XwaOSJYpCvux2J1ew 9RQ70LQuUlb6mhAd9WQbL8heaZUNdqvF9UYn5yBtALPct4Mq4S78ntHIPe3XNTVfOcGd1k/oGQQM rwg= =QZyg -----END PGP SIGNATURE----- --Lu579TpMefqxNw3wZ369uPQ9eMYjlnL49--