| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix bitshiftright()'s zero-padding some more. |
| Дата | |
| Msg-id | E1iGOfX-0006hT-De@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix bitshiftright()'s zero-padding some more. Commit 5ac0d9360 failed to entirely fix bitshiftright's habit of leaving one-bits in the pad space that should be all zeroes, because in a moment of sheer brain fade I'd concluded that only the code path used for not-a-multiple-of-8 shift distances needed to be fixed. Of course, a multiple-of-8 shift distance can also cause the problem, so we need to forcibly zero the extra bits in both cases. Per bug #16037 from Alexander Lakhin. As before, back-patch to all supported branches. Discussion: https://postgr.es/m/16037-1d1ebca564db54f4@postgresql.org Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6c3b6406db3b132b84d7be6fe838da9d46cd02f8 Modified Files -------------- src/backend/utils/adt/varbit.c | 6 ++-- src/test/regress/expected/bit.out | 66 +++++++++++++++++++++++++++++++++++++++ src/test/regress/sql/bit.sql | 6 ++++ 3 files changed, 76 insertions(+), 2 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера