pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t

pgsql: Fix failure to zero-pad the result of bitshiftright().

2019-09-22 Thread Tom Lane
Fix failure to zero-pad the result of bitshiftright(). If the bitstring length is not a multiple of 8, we'd shift the rightmost bits into the pad space, which must be zeroes --- bit_cmp, for one, depends on that. This'd lead to the result failing to compare equal to what it should compare equal t