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 1oAyaP-0006rz-Lz for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2022 18:56:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAyaO-0006Wv-Eb for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2022 18:56:48 +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 1oAyaO-0006Wm-7G for pgsql-bugs@lists.postgresql.org; Mon, 11 Jul 2022 18:56:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAyaL-0001Rm-RI for pgsql-bugs@lists.postgresql.org; Mon, 11 Jul 2022 18:56:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26BIuhYO1215878; Mon, 11 Jul 2022 14:56:43 -0400 From: Tom Lane To: =?utf-8?B?0JDQvdGC0L7QvSDQn9C+0YLQsNC/0L7Qsg==?= cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #17546: power() function - value is distorted via automatic type cast In-reply-to: <946851657555377@mail.yandex.ru> References: <17546-d71fe78a505f9f7b@postgresql.org> <1119193.1657554589@sss.pgh.pa.us> <946851657555377@mail.yandex.ru> Comments: In-reply-to =?utf-8?B?0JDQvdGC0L7QvSDQn9C+0YLQsNC/0L7Qsg==?= message dated "Mon, 11 Jul 2022 19:04:04 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1215876.1657565803.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Jul 2022 14:56:43 -0400 Message-ID: <1215877.1657565803@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?utf-8?B?0JDQvdGC0L7QvSDQn9C+0YLQsNC/0L7Qsg=3D=3D?=3D 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