From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
---|---|
To: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Numeric x^y for negative x |
Date: | 2021-07-07 18:42:43 |
Message-ID: | CAEZATCXunxKJ+p8fK_v4Y5L2iNfAHgDz389q1k3FYTVEL2ifhg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, 7 Jul 2021 at 18:57, Zhihong Yu <zyu(at)yugabyte(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Maciek Sakrejda | 2021-07-07 18:52:55 | TOAST questions |
Previous Message | Gilles Darold | 2021-07-07 18:28:34 | Re: Case expression pushdown |