Re: Rounding to even for numeric data type

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Rounding to even for numeric data type
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B365C6094@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Rounding to even for numeric data type  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Michael Paquier wrote:
> Well, I am not sure about that... But reading this thread changing the
> default rounding sounds unwelcome. So it may be better to just put in
> words the rounding method used now in the docs, with perhaps a mention
> that this is not completely in-line with the SQL spec if that's not
> the case.

The SQL standard does not care, it says that numbers and other data types
should, whenever necessary, be rounded or truncated in an implementation-
defined fashion.

I cannot find any mention of a round() function.

Yours,
Laurenz Albe

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: getting rid of "thread fork emulation" in pgbench?
Следующее
От: Antonin Houska
Дата:
Сообщение: Concurrent calls of _hash_getnewbuf()