Re: Numeric 508 datatype
| От | Tom Lane |
|---|---|
| Тема | Re: Numeric 508 datatype |
| Дата | |
| Msg-id | 6988.1133556946@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Numeric 508 datatype (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Numeric 508 datatype
|
| Список | pgsql-patches |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I just tested from a standalone backend:
> backend> select pow(10::numeric, 131071) + 1
> and got 4095 zeros and no trailing '1' (wrong), so it isn't psql, it
> must be something in the backend.
If the backend is truncating the result length, I don't see why psql
would decide it needs 12K dashes for the header. There's something
awfully fishy going on in your machine.
Try something like
regression=# select length((pow(10::numeric, 131071))::text);
length
--------
131089
(1 row)
If that gives the right answer then the NUMERIC code is off the hook,
and what you've got is a strange limitation on output column length.
regards, tom lane
В списке pgsql-patches по дате отправления: