[BUGS] BUG #14695: Documentation is not accurate

Поиск
Список
Период
Сортировка
От yarex@pobox.sk
Тема [BUGS] BUG #14695: Documentation is not accurate
Дата
Msg-id 20170609065706.26503.29688@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: [BUGS] BUG #14695: Documentation is not accurate  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [BUGS] BUG #14695: Documentation is not accurate  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14695
Logged by:          Jaroslav Sivy
Email address:      yarex@pobox.sk
PostgreSQL version: 9.6.3
Operating system:   n/a
Description:

url: https://www.postgresql.org/docs/8.1/static/functions-math.html

CEIL and FLOOR example is not accurate.

ceil(dp or numeric) 
smallest integer not less than argument: ceil(-42.8) = -42

..... well, minus 42 is not smallest integer from -42.8, because -42 is
bigger number :-).

..... so correct number should be -43 in case of negative numbers
(positive are fine)

Same applies to FLOOR from negative numbers, where its opposite.


--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: [BUGS] Re: BUG #14680: startup process on standby encounter a deadlock ofTwoPhaseStateLock when redo 2PC xlog
Следующее
От: "Nithyanantham Shanmugam (nithshan)"
Дата:
Сообщение: [BUGS] Postgres Installation Issue (COMSPEC)