From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Fri, 30 Oct 2026 17:36:52 -0400
Message-ID: <2753325.1793396212@sss.pgh.pa.us> (raw)
In-Reply-To: <19811-3e5c60ea0ef2a9b7@postgresql.org>
References: <19811-3e5c60ea0ef2a9b7@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, 303677365@qq.com
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: <2753325.1793396212@sss.pgh.pa.us>
References: <19811-3e5c60ea0ef2a9b7@postgresql.org> <2753325.1793396212@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox