pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: daryl.waycott@edgeintelligence.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16013: Unexpected results from bit field query
Date: Wed, 18 Sep 2019 23:37:19 -0400
Message-ID: <27542.1568864239@sss.pgh.pa.us> (raw)
In-Reply-To: <16013-c2765b6996aacae9@postgresql.org>
References: <16013-c2765b6996aacae9@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> A query using a right bit shift and an equality on a bit field seems to
> return incorrect results.

Ugh.  bit_cmp expects that any unused bits in the last byte
are guaranteed zero, but bitshiftright isn't ensuring that.
Didn't look to see if the same bug exists anywhere else ...

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <27542.1568864239@sss.pgh.pa.us>
Permalink:  ../27542.1568864239@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27542.1568864239@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daryl.waycott@edgeintelligence.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16013: Unexpected results from bit field query
  In-Reply-To: <27542.1568864239@sss.pgh.pa.us>

* 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