Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMuJJ-00000002GQ7-1DUV for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Oct 2026 21:38:53 +0000 Received: from localhost ([127.0.0.1]:44522 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xMuJI-0000000CFO5-3Yy9 for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Oct 2026 21:38:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:57194) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMuHR-0000000CDAP-25nP for pgsql-bugs@lists.postgresql.org; Fri, 30 Oct 2026 21:36:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMuHO-00000001p1j-3NwB for pgsql-bugs@lists.postgresql.org; Fri, 30 Oct 2026 21:36:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 69ULaqYL2753326; Fri, 30 Oct 2026 17:36:53 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 69ULaqYL2753326 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1793396213; bh=7s8lZDHgl4pW04GOiv90XJrpOABxVWcV+h/ISQcHcEw=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=lJ36D9soCSiTqHC80AjMHVi1VJf8UF7lUAe+7Sz0UWn/I69cSoWYFLbWt8zBaaKl/ yu5+0Mv+ICFnIV24rYBVV7h06l2rmCJatZPvIYh7pURoDHlfsmk7Ux6Ek8tMHLVziQ nub+3y1gnJVFyjjE722co70637pgE32Ezt18X9pQ= From: Tom Lane To: 303677365@qq.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19811: numeric log(base, x): wrong sign of Infinity result when base < 1; base 1 accepted with x = Infinity In-reply-to: <19811-3e5c60ea0ef2a9b7@postgresql.org> References: <19811-3e5c60ea0ef2a9b7@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 29 Oct 2026 06:37:56 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2753324.1793396212.1@sss.pgh.pa.us> Date: Fri, 30 Oct 2026 17:36:52 -0400 Message-ID: <2753325.1793396212@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > The two-argument numeric logarithm returns +Infinity for x = Infinity > regardless of the base. For bases between 0 and 1 the correct result is > -Infinity, and for base 1 the call should be rejected. Thanks for the report, but this was already reported and fixed a couple weeks ago: https://git.postgresql.org/gitweb/?a=commitdiff&h=94e1385ed&p=postgresql.git regards, tom lane