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.89) (envelope-from ) id 1hkvQd-0004QS-EG for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jul 2019 19:05:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkvQc-0006Xn-2T for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jul 2019 19:05:26 +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 1hkvQb-0006Xg-Mc for pgsql-hackers@lists.postgresql.org; Tue, 09 Jul 2019 19:05:25 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkvQX-0001xz-3W for pgsql-hackers@postgresql.org; Tue, 09 Jul 2019 19:05:25 +0000 Received: by mail-pg1-x529.google.com with SMTP id q4so9921992pgj.8 for ; Tue, 09 Jul 2019 12:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=i2DBOFLXNNjdv38Rytxsb+4nubssWlF6aPEc7I2m5FU=; b=z6CViixgLg7ajScOKDL1zja0o+RKppkhWDLNFfp5An7i6Lz7Kh0GZAnYEH0soGEmup Gjy9QeV86ktxKNDmdHNEN067It7WkfVsGOYMSVBVTSiqC+JqFyqsu7rIuiso8f4rjxRg wNuGzNQx9qsjrTpHkHoNlXQSWssb7o/Y24I2b90JRI7rR57T7fCOxX5dMtcd9a/L1Mnh GpDTtqFvwnTIRbdWujgrv78SJIY0NfTDSjwQXJWIUcQICuWOjBrL5K1j4UJcBb7dE9sO T7SyECKvZ5epbN1+HcB1EYbR7znQALTsslL6FTHQeprkF1LNQ0AaQfRpo69Y0PbUIp8+ WgqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=i2DBOFLXNNjdv38Rytxsb+4nubssWlF6aPEc7I2m5FU=; b=c/YFeWgrktZFf1VujxmJ/hSmhGhO3SM3HZnMhjL3jykBicTWhyAkyBr8jwPq1t/9GZ Z0sJSfru7qPJaDhNy0CvvW6jUXnDodZkxkIoxHDygUxrtNl4jC8w7/Ql1xyQa3zkrP2C 5mQsO55fmz3HQ30jS3kRoWxtMv2kwkd5BxgjOkXcEG5aobZxFj0Lxlqbqpjq1CK7kS7n QaREpBLuElvqkawjR/Jzey5yoXTuOKM4zbwJiA2g8Ji8UkCgon2HdiBvpqjeRYsgE5qH AZcZ1XkrpEFgzeZyoyDxwuYK7auH0Gm6BmXrxDULGALkgJ2KuztArmFyF5Ha9U9mG47k SFfg== X-Gm-Message-State: APjAAAWTYksPbBLUn9TMkc0l+JiOgsWr5Yirje6ZpIFqJ9dy70w70Pg7 hEWbsW2LctBsyYUS0vG0xAQp7QKCGq4= X-Google-Smtp-Source: APXvYqwvd03Cj4CpQpCcxgGAhDMTSXWcpcwSJQBC7Q2LOT4oI325kdyNsn4+AW4vK4T1BDdUYZSwTg== X-Received: by 2002:a65:504c:: with SMTP id k12mr32673234pgo.252.1562699118625; Tue, 09 Jul 2019 12:05:18 -0700 (PDT) Received: from [192.168.2.101] (static-50-53-109-254.bvtn.or.frontiernet.net. [50.53.109.254]) by smtp.googlemail.com with ESMTPSA id r9sm1287561pjq.3.2019.07.09.12.05.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 12:05:17 -0700 (PDT) Subject: Re: range_agg To: Alvaro Herrera Cc: Jeff Davis , Pgsql Hackers References: <20190709190118.GA11172@alvherre.pgsql> From: Paul Jungwirth Message-ID: <258dd942-7dc8-42e4-c21a-8330df027d90@illuminatedcomputing.com> Date: Tue, 9 Jul 2019 12:05:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190709190118.GA11172@alvherre.pgsql> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/9/19 12:01 PM, Alvaro Herrera wrote: > On 2019-Jul-08, Paul A Jungwirth wrote: > >> - You can subscript a multirange like you do an array (? This could be >> a function instead.) > > Note that we already have a patch in the pipe to make subscripting an > extensible operation, which would fit pretty well here, I think. I'll take a look at that! > Also, I suppose you would need unnest(multirange) to yield the set of > ranges. I think that would be really nice, although it isn't critical I think if you can do something like UNNEST(multirange::tstzrange[]). -- Paul ~{:-) pj@illuminatedcomputing.com