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 1hkvMn-0004HJ-Tb for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jul 2019 19:01:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkvMm-0008HX-PR for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jul 2019 19:01:28 +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 1hkvMm-0008Au-BR for pgsql-hackers@lists.postgresql.org; Tue, 09 Jul 2019 19:01:28 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkvMi-0001uE-Tb for pgsql-hackers@postgresql.org; Tue, 09 Jul 2019 19:01:27 +0000 Received: by mail-qk1-x741.google.com with SMTP id r4so16792672qkm.13 for ; Tue, 09 Jul 2019 12:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=mqNzerlYVQ/ic3CrUacC2SZ6oDrvcBGjr4QtGH53/xY=; b=f+LYxlt2M+11VGbU/XcXp2dkPiOrGx8BltZwThxwX7WnLf9EWLQ+kRX8gtze0jqGSZ 7eiKqRj1xp3VWkDea61no9nyBeHow19bqVfs5LwbVReVovxeux6zpMXl3LPIcJ9alAR4 jHT+JzuxxrM7sH5dH1J+TAyAuALSA1xy5EDx6bVl+kKJS3K19ew/Aw4PtlhP2dHG0L69 Y5JwSeX8b9cuFLy0FAM2RfUgL6JM5Byp69vZ7fBIA+4fS1BYadprpL6zKihtgoI4U/QU EBx38FWZ82smSQb1HavKhh1J55aV9drNhaonih8NGnfsYAeJlclxuf6ODcxlLGWu/rBK bwaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=mqNzerlYVQ/ic3CrUacC2SZ6oDrvcBGjr4QtGH53/xY=; b=m/cMXOB8zSBiDyi8dBhS+SBOLbDdEA8Ve5AC8ye2oO/PC12HGkAQghSrUcWw3lAQn3 Y//rIAG9y4D/lue36MIUY35N1F6ME/P7ZyqrjTrE8mtXt2Bmxmi0aozNZ4eDDlW2Liha hoXWErZ3ZFalPUIsFzHjZCrXsBmnJ7CKM4vDevZFnEB+aYfNkecCNOj0Yui5SPIqAJRi PZxrGDhvkO9mxRjzxU/4p7Dx3kV4C41j73Ye8tXS+w9aZO3KtY1Z0zoWqdHG/iECyjpK AOazRuExmKWCb1v4qpxmtT7eX1M4LRAh9O8Wa1KrnJfrSnlIGBKTz/SRMx3IbzFuWnOU ajAQ== X-Gm-Message-State: APjAAAXR6WT0Tf7hhSR6iRSGqYYKfc+SUsr519G9a6wBF3IdsbUqpOzr 0V5NxYEpKLhnnQfZsoakF1shuA== X-Google-Smtp-Source: APXvYqw+sRK3Ox/SUDtLiKlwTLX9sKdQJbQ/5Ngiv0igqP5wWcT1xTMKcp/tMnpesoXwQcvEsqdLAg== X-Received: by 2002:a37:6982:: with SMTP id e124mr19168736qkc.291.1562698882894; Tue, 09 Jul 2019 12:01:22 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id u18sm9280264qkj.98.2019.07.09.12.01.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 12:01:21 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4A245121C65; Tue, 9 Jul 2019 15:01:18 -0400 (-04) Date: Tue, 9 Jul 2019 15:01:18 -0400 From: Alvaro Herrera To: Paul A Jungwirth Cc: Jeff Davis , Pgsql Hackers Subject: Re: range_agg Message-ID: <20190709190118.GA11172@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. Also, I suppose you would need unnest(multirange) to yield the set of ranges. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services