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 1kctmf-00072f-T9 for pgsql-docs@arkaria.postgresql.org; Wed, 11 Nov 2020 17:19:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kctmd-0000lp-Rx for pgsql-docs@arkaria.postgresql.org; Wed, 11 Nov 2020 17:19:47 +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 1kctmd-0000l1-IH for pgsql-docs@lists.postgresql.org; Wed, 11 Nov 2020 17:19:47 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kctmY-00051m-Qz for pgsql-docs@lists.postgresql.org; Wed, 11 Nov 2020 17:19:46 +0000 Received: by mail-ed1-x533.google.com with SMTP id a15so3136820edy.1 for ; Wed, 11 Nov 2020 09:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=X8oCKbxnYXM9VaPu5BmeNYTSlUKPm6EdtQFrLYSCBdY=; b=HUNHmhmISbA5fPNnYXOhsWQd+4mNce6odcvzltKcHIOoqatsrCjXGFI4AlwGPx/eSD gbuPGfuE+g4qtJKqGRcC9peEE4ZLwNWCI6X7i5e7btcugx/pisSQHhsSWbWgu3EfknXZ /H9w+U1xBvRUrAgThg1wPM9MIIN3VjSXQhdBgZNbQng+swyRq3xM2VgmDI5jD0v7HVML l3iJKfjd6T9nBPtRNbXQB68ivjC5SC3E22SdmGzKCYD4bdJ89Nh2OHsFpqdUm1RnmHeH oUt7e3Zr4EhC/BhBmapurdgqM3scBpoi4sL/pGdh3WRGbLKQU0DFVw54kRUCl/GvCuuX +NOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=X8oCKbxnYXM9VaPu5BmeNYTSlUKPm6EdtQFrLYSCBdY=; b=kyQdOU0BHAPAHvy7qtO5tuyS+mp6Y3HJHa3MBVw0nWoM5h/IZivlg6JqaHc5OXWK9Q V6dkucz5SXDoVd9H1mYGxbhIeYqJtKk/ZgwNnVKkpFLaw3wStQLFxyfngUADB9XXgCSF Ll0qTvI0hijYZWMmBWnPv6cyKFLgVALO7fpmsjsxBnJC4xY2UGnzZtOzlAr5Mopdh/uQ BRp/wDnw1lqo4MAzFRhOMGU+ElN0NPZsAKo8iu8TJrWdpFZm31YRe1d4YJkMZry+pQRV AIlx4q+qlakLa939ZwnSDhTbkK+GcgwAe9EpFtBGqCHio3ayE3XqEk+uPaUGmutxF+16 zTbA== X-Gm-Message-State: AOAM531v7ZZR97RoufGyiYaaEjcYEMZ0Jz9YblBuH+VPcC+wHwu5mo+2 Y4SDy8bVnydV6EWXfq0SOMLC8g== X-Google-Smtp-Source: ABdhPJwToO0YtNVEi4rMeGKkLxasGIW+5n2Sg5Sr7WHGoz9xR6j950MoT7vGknupxd0ysZzglMZ0Pw== X-Received: by 2002:aa7:d514:: with SMTP id y20mr496854edq.384.1605115180053; Wed, 11 Nov 2020 09:19:40 -0800 (PST) Received: from localhost.localdomain (217-149-170-120.nat.highway.telekom.at. [217.149.170.120]) by smtp.gmail.com with ESMTPSA id m26sm1097586ejb.45.2020.11.11.09.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 09:19:39 -0800 (PST) Message-ID: <53ec9f116bea9252d7fa9341e024530553656c42.camel@cybertec.at> Subject: Re: Documentation of return values of range functions lower and upper From: Laurenz Albe To: jani.rahkola@iki.fi, pgsql-docs@lists.postgresql.org Date: Wed, 11 Nov 2020 18:19:38 +0100 In-Reply-To: <160508672127.25505.8356390205508789564@wrigleys.postgresql.org> References: <160508672127.25505.8356390205508789564@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 2020-11-11 at 09:25 +0000, PG Doc comments form wrote: > Table 9.54 in page > https://www.postgresql.org/docs/current/functions-range.html states that the > functions lower and upper return NULL if the requested bound is infinite. If > the element type of the range contains the special values infinity and > -infinity, this is not correct, as those values are returned if explicitly > used as either bound. +1 Perhaps it would be better to say NULL if the range is empty or has no lower/upper bound Yours, Laurenz Albe