From: Tom Lane <tgl@sss.pgh.pa.us>
To: Антон Потапов <su.sinodan@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17546: power() function - value is distorted via automatic type cast
Date: Mon, 11 Jul 2022 14:56:43 -0400
Message-ID: <1215877.1657565803@sss.pgh.pa.us> (raw)
In-Reply-To: <946851657555377@mail.yandex.ru>
References: <17546-d71fe78a505f9f7b@postgresql.org>
<1119193.1657554589@sss.pgh.pa.us>
<946851657555377@mail.yandex.ru>
=?utf-8?B?0JDQvdGC0L7QvSDQn9C+0YLQsNC/0L7Qsg==?= <su.sinodan@gmail.com> writes:
> Is there any chance that you will reflect this in the documentation?
It is documented --- see under
https://www.postgresql.org/docs/current/datatype-numeric.html
and
https://www.postgresql.org/docs/current/typeconv.html
(particularly example 10.3, which points out that float8 is
considered a preferred type). We are not going to repeat all that
material under every single affected function, if that's what
you're asking for.
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, su.sinodan@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17546: power() function - value is distorted via automatic type cast
In-Reply-To: <1215877.1657565803@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