Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jAlwK-0002L1-Ls for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 02:45:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAlwI-0000vu-H9 for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 02:45:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jAlwH-0000oh-Rs for pgsql-hackers@lists.postgresql.org; Sun, 08 Mar 2020 02:45:14 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jAlwB-00045H-BZ for pgsql-hackers@postgresql.org; Sun, 08 Mar 2020 02:45:13 +0000 Received: by fetter.org (Postfix, from userid 1001) id 9932240BD0; Sun, 8 Mar 2020 03:45:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fetter.org; s=default; t=1583635505; bh=ADdLKFRfQarEsj3JySQDRLoLrDCo3zLKQynOSezfLoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=3xs879tgdjMiHiolyTATcyBc1drllWlL4aiQjHTvtuJFQwxjc+aFHTdzpYHayGMod 6MBgS/Sy5oflSeznlm3Qg4iyRUS3n391yfmHqG7txII3x2JSS5EuJXs6OoBAJQQArN WlebQHTQvMhWdEsZEYiRiwtvJpK2xutw9S6rHp1b3OZBzbV9wooq8NkxxTxpav6Ytt llll6ZB9OAa1dGmeypHcAnpHxDaRaX6lA1boOcVHJgbK59HuQH8p5Gp4nHsxxeQzi1 rbbNuDWVv+MDizZglJ+Y4fGi6zbCkMDKzLH03Gf4/WYvPA7QLEXy1K21LfORFtylvn 2idxicOnZPK8A== Date: Sun, 8 Mar 2020 03:45:05 +0100 From: David Fetter To: Tom Lane Cc: Paul A Jungwirth , Alvaro Herrera , Pavel Stehule , Jeff Davis , Pgsql Hackers Subject: Re: range_agg Message-ID: <20200308024505.GW13804@fetter.org> References: <20200304022849.GA5402@alvherre.pgsql> <13800.1583612399@sss.pgh.pa.us> <15764.1583615192@sss.pgh.pa.us> <20200307221312.GV13804@fetter.org> <9016.1583624744@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9016.1583624744@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Mar 07, 2020 at 06:45:44PM -0500, Tom Lane wrote: > David Fetter writes: > > There's another use case not yet covered here that could make this > > even more complex, we should probably plan for it: multi-ranges > > with weights. > > I'm inclined to reject that as completely out of scope. The core > argument for unifying multiranges with ranges, if you ask me, is to > make the data type closed under union. Weights are from some other > universe. I don't think they are. SQL databases are super useful because they do bags in addition to sets, so set union isn't the only, or maybe even the most important, operation over which ranges ought to be closed. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate