Re: BUG #16037: Assertion fails in varbit_out

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-10-04T05:34:48Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> The following query:
> SELECT CAST(B'111111111111100000000' AS BIT VARYING(20)) >>8;
> causes the FailedAssertion exception:

D'oh ... bitshiftright() needs to do the zero-pad-fixup in both
code paths.  Will fix it tomorrow.

			regards, tom lane



Commits

  1. Fix bitshiftright()'s zero-padding some more.