Re: BUG #16037: Assertion fails in varbit_out - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16037: Assertion fails in varbit_out
Date
Msg-id 17708.1570167288@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16037: Assertion fails in varbit_out  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16037: Assertion fails in varbit_out
List 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



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16037: Assertion fails in varbit_out
Next
From: Andres Freund
Date:
Subject: Re: BUG #16037: Assertion fails in varbit_out