pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix bitshiftright()'s zero-padding some more. 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/61aa9f544a91f2908e4c7cd549907cdc5b6f1c82 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b8ddf0bdf74603fa04aab911afac861efec0a0a3 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9faa9794f885bd27bbb2c1f0a287d5efa8437ade 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/30e5b3bbe9ca9f3594816788fe4469798da04f64 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8b77f783b7584e8cbcf0aa42c7f176f7f23937ae 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix bitshiftright()'s zero-padding some more. @ 2019-10-04 14:34 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-10-04 14:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b6a6c129fca493da4fb289b9cbd757699e51af5b 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-10-04 14:34 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us> 2019-10-04 14:34 pgsql: Fix bitshiftright()'s zero-padding some more. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox