From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16037: Assertion fails in varbit_out
Date: Thu, 3 Oct 2019 22:42:41 -0700
Message-ID: <20191004054241.x4cfcu4qnaucggf3@alap3.anarazel.de> (raw)
In-Reply-To: <17708.1570167288@sss.pgh.pa.us>
References: <16037-1d1ebca564db54f4@postgresql.org>
<17708.1570167288@sss.pgh.pa.us>
Hi,
On 2019-10-04 01:34:48 -0400, Tom Lane wrote:
> 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.
Does that suggest we shouldn't make the asserts active in the branches <
12?
Greetings,
Andres Freund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, exclusion@gmail.com
Subject: Re: BUG #16037: Assertion fails in varbit_out
In-Reply-To: <20191004054241.x4cfcu4qnaucggf3@alap3.anarazel.de>
References: <16037-1d1ebca564db54f4@postgresql.org> <17708.1570167288@sss.pgh.pa.us> <20191004054241.x4cfcu4qnaucggf3@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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