Clarification on the (lack of) differences between the decimal, dec, and numeric types
В списке pgsql-docs по дате отправления:
| От | PG Doc comments form |
|---|---|
| Тема | Clarification on the (lack of) differences between the decimal, dec, and numeric types |
| Дата | |
| Msg-id | 177093037652.511554.9909015222857903383@wrigleys.postgresql.org обсуждение исходный текст |
| Ответы |
Re: Clarification on the (lack of) differences between the decimal, dec, and numeric types
|
| Список | pgsql-docs |
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/datatype-numeric.html Description: I would like to clarify the language describing the decimal type on this page: https://www.postgresql.org/docs/current/datatype-numeric.html The above page states that "The types decimal and numeric are equivalent." Although this is correct, it is not precise enough. Several questions have been asked online about the difference between the types, even though there is no difference. decimal and dec are both aliases to the numeric type. Any calls to decimal or dec are the same thing as calls to numeric. I suggest changing the wording of the page to read "decimal is an alias of the type numeric. Both reference the same underlying type." This answer on StackOverflow explains the full details: https://stackoverflow.com/a/79888387/9542182.
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера