From: Tom Lane <tgl@sss.pgh.pa.us>
To: samuelwoodward@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16901: log(1, anyvalue) gives division by zero error
Date: Fri, 26 Feb 2021 11:55:56 -0500
Message-ID: <309302.1614358556@sss.pgh.pa.us> (raw)
In-Reply-To: <16901-eba09f68de57ace7@postgresql.org>
References: <16901-eba09f68de57ace7@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> for example log(1, 10) gives division by zero error whereas log10(1) gives 0
I think you have the arguments backwards: the equivalent
computation is log(10, 1) not log(1, 10).
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, samuelwoodward@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16901: log(1, anyvalue) gives division by zero error
In-Reply-To: <309302.1614358556@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