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 1lr3pD-0006un-V1 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jun 2021 19:25:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lr3pC-0005wh-Tm for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jun 2021 19:25:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lr3pC-0005wZ-MM for pgsql-hackers@lists.postgresql.org; Wed, 09 Jun 2021 19:25:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lr3pA-0006Xu-O0; Wed, 09 Jun 2021 19:25:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 159JPBuD1429043; Wed, 9 Jun 2021 15:25:11 -0400 From: Tom Lane To: "Jonathan S. Katz" cc: PostgreSQL Hackers Subject: Re: unnesting multirange data types In-reply-to: <60258efe-bd7e-4886-82e1-196e0cac5433@postgresql.org> References: <60258efe-bd7e-4886-82e1-196e0cac5433@postgresql.org> Comments: In-reply-to "Jonathan S. Katz" message dated "Wed, 09 Jun 2021 14:33:56 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1429041.1623266711.1@sss.pgh.pa.us> Date: Wed, 09 Jun 2021 15:25:11 -0400 Message-ID: <1429042.1623266711@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Jonathan S. Katz" writes: > I would like to decompose the returned multirange into its individual > ranges, similarly to how I would "unnest" an array: +1 for adding such a feature, but I suppose it's too late for v14. AFAICS, "unnest(anymultirange) returns setof anyrange" could coexist alongside the existing variants of unnest(), so I don't see any fundamental stumbling block to having it. regards, tom lane