pgsql: Introduce overflow-safe integer comparison functions.
В списке pgsql-committers по дате отправления:
| От | Nathan Bossart |
|---|---|
| Тема | pgsql: Introduce overflow-safe integer comparison functions. |
| Дата | |
| Msg-id | E1rb42i-006aEE-4M@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Introduce overflow-safe integer comparison functions. This commit adds integer comparison functions that are designed to be as efficient as possible while avoiding overflow. A follow-up commit will make use of these functions in many of the in-tree qsort() comparators. The new functions are not better in all cases (e.g., when the comparator function is inlined), so it is important to consider the context before using them. Author: Mats Kindahl Reviewed-by: Tom Lane, Heikki Linnakangas, Andres Freund, Thomas Munro, Andrey Borodin, Fabrízio de Royes Mello Discussion: https://postgr.es/m/CA%2B14426g2Wa9QuUpmakwPxXFWG_1FaY0AsApkvcTBy-YfS6uaw%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6b80394781c8de17fe7cae6996476088af3c319f Modified Files -------------- src/include/common/int.h | 75 +++++++++++++++++++++++++++++++++++++++-- src/include/lib/sort_template.h | 13 +++++++ 2 files changed, 86 insertions(+), 2 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера