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 1ltCre-0008Rv-Bv for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jun 2021 17:28:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltCrd-0001bG-1Y for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jun 2021 17:28:37 +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 1ltCrc-0001b8-Pw for pgsql-hackers@lists.postgresql.org; Tue, 15 Jun 2021 17:28:36 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltCra-00050y-QF for pgsql-hackers@lists.postgresql.org; Tue, 15 Jun 2021 17:28:36 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 724211693; Tue, 15 Jun 2021 13:28:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 15 Jun 2021 13:28:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=sK1VgUcl47qrqMH/WOPWFf9RLnJxD/pXNcmKlhds9Aw=; b=scy/Txb5 Pz9v3Y5UGGXkxPz45/OZm3WAk0gHVnZOjFtLCYOeecuQH7sUhxiX1rXVIUT1nQIP FTecobYtIQd3k1H5O1WS3CB7NIUb1cxw5VEE92UGt7oEbYcyL8dE/VklYgx8yreW L/eF+4myc+9NyeDMFio8s+irOIePg/Fio/Jq52FJKI4I7Ap6a8oYl65TnIZ2izKY DSDSB+dtTm/Vtu90tNydd64upWswW0nN4Po6UCpwalfHyKBXXk1KVaS7buhyRcg3 AoRx4D7AYVUSGuqzID9eWOWYMR7wC071ZDPxTJ+pTz7Yqt46Za3VW328rtIZnrq4 cXva/nfnb++HvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjgesthekredttddtudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepgeegveevffevjeffudethfdvtdeggefhhffguefhfeej iefgvefhfeelvedtudetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 13:28:31 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CE33F2A0ADA; Tue, 15 Jun 2021 13:28:27 -0400 (-04) Date: Tue, 15 Jun 2021 13:28:27 -0400 From: Alvaro Herrera To: Tom Lane Cc: Alexander Korotkov , "Jonathan S. Katz" , Justin Pryzby , Zhihong Yu , PostgreSQL Hackers Subject: Re: unnesting multirange data types Message-ID: <202106151728.5kbtjl7or3g2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <427913.1623777486@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-15, Tom Lane wrote: > It looks to me like the proximate problem is that you should > have taught pg_dump to skip these new auto-generated functions. > However, I fail to see why we need auto-generated functions > for this at all. Couldn't we have done it with one polymorphic > function? I think such a function would need to take anycompatiblerangearray, which is not something we currently have. > I think this ought to be reverted and reviewed more carefully. 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 be added in 15 (if at all). That would mean reverting only half the patch. -- Álvaro Herrera 39°49'30"S 73°17'W