Re: Numeric x^y for negative x - Mailing list pgsql-hackers

From Dean Rasheed
Subject Re: Numeric x^y for negative x
Date
Msg-id CAEZATCXunxKJ+p8fK_v4Y5L2iNfAHgDz389q1k3FYTVEL2ifhg@mail.gmail.com
Whole thread Raw
In response to Re: Numeric x^y for negative x  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
On Wed, 7 Jul 2021 at 18:57, Zhihong Yu <zyu@yugabyte.com> wrote:
>
> +                   (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
> +                    errmsg("value overflows numeric format")));
>
> Here is an example of existing error message which I think is more readable than 'overflows numeric format':
>
>                  errmsg("bigint out of range")));
>
> Maybe rephrase as: value is out of range
>

Hmm, I don't know. That's the error that has been thrown by lots of
numeric functions for a long time now, and it seems fine to me.

Regards,
Dean



pgsql-hackers by date:

Previous
From: Gilles Darold
Date:
Subject: Re: Case expression pushdown
Next
From: Maciek Sakrejda
Date:
Subject: TOAST questions