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 1jLDW7-0003jY-L4 for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 22:13:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLDW6-0002fm-4q for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 22:13:22 +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 1jLDW5-0002ez-UC for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2020 22:13:21 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jLDW2-0002Tq-DN for pgsql-hackers@postgresql.org; Sun, 05 Apr 2020 22:13:21 +0000 Received: by mail-qk1-x744.google.com with SMTP id o18so11521708qko.12 for ; Sun, 05 Apr 2020 15:13:17 -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=DGqe1tD6OSlbpBqgZsXko6FYWiMaidL6Mqj/XT4ZHRs=; b=sPvFP8W6pvirmhSnhVIiYUiuxCwRUWvZkPtiMpfdIcLg+w5qC3/E7xdNux/Umx5AO0 NaB09ov2KQ8HfNbr3aaX4+xjKXYEjTj9wVUUQHbD3L1YA+5D0rrvPDm11Nvw1oMhwkh3 UUs0acaf5q6oMbfWjDWWqTBLSe2tDx2OYwbyRvNPVcOsZyhxElG9R37eMIJahQ10aC+S ygC2q0ZDX/N3RXeqy70XF5lkiSmjYN/IPeM3+wt0bgbyOuFMgqArgavzUT//K6/O+Q/G otWs8RpHFtFTkkFVTfkmJ/OpJP+RiBxKLkWVRFj5aGbjEOWQ9jp29UrlLtnG4EMM3NQp utEg== 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=DGqe1tD6OSlbpBqgZsXko6FYWiMaidL6Mqj/XT4ZHRs=; b=ftvpqG2SlYy4fzxK1JJZsSx+6SuIk7BlaRlfVlL34cdvPA0yLkv8FdDuuPmGTvhMMC oPEkM3QF/F0+B6EC3zpLaVI5P9/Dw6FCm65Zrqh7KS4ELKF1rWKEilCOgPNF+fJmkQA8 eZkXFWAb5euHc+t5ihNbxUYiMKUjfbYyOz14PX1WDFwp1jPatRTEyS4DMqVZ3FGnYH1m BK2WzircfRZiVzwSbbIUTW9FW/+jXKJ5KG+Xhh2AWNlg2X6k78W5rtq9DvwS6fkMXE/N UmOV0FIAR/DKsdfMyk5M4GM58SmNiQLtPAXho/wcfKb6wwzuL9fz/YMIqzZu++1ijFa8 Iyyw== X-Gm-Message-State: AGi0PuYFSm/4Haq56cHpHg81fVh2FGtdC300pMmxVlDoNVrd+9RysyOL lPlXCdUCkeTwImFgB45rK3flFw== X-Google-Smtp-Source: APiQypJDFr5usAM/5JnEiKyr+Hd1MhuWwRmcetheT8pwzCC+6+KILS/aOulqJqcGtqyuR0DhBuOBrA== X-Received: by 2002:a37:678b:: with SMTP id b133mr18805892qkc.327.1586124796362; Sun, 05 Apr 2020 15:13:16 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id o7sm12659319qkm.35.2020.04.05.15.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2020 15:13:15 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 5E086300A03; Sun, 5 Apr 2020 18:13:13 -0400 (-04) Date: Sun, 5 Apr 2020 18:13:13 -0400 From: Alvaro Herrera To: Paul Jungwirth Cc: Tom Lane , PostgreSQL-development , Jeff Davis , Pavel Stehule , David Fetter Subject: Re: range_agg Message-ID: <20200405221313.GA22266@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200404231018.GA4570@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk v17 is a rebase fixing a minor parse_coerce.c edit; v16 lasted little :-( I chose to change the wording of the conflicting comment in enforce_generic_type_consistency(): * 3) Similarly, if return type is ANYRANGE or ANYMULTIRANGE, and any * argument is ANYRANGE or ANYMULTIRANGE, use that argument's * actual type, range type or multirange type as the function's return * type. This wording is less precise, in that it doesn't say exactly which of the three types is the actual result for each of the possible four cases (r->r, r->m, m->m, m->r) but I think it should be straightforward. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services