From: Andres Freund <andres@anarazel.de>
To: marc@daelemans.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14681: Erroneous modulo (%) result
Date: Wed, 31 May 2017 15:37:49 -0700
Message-ID: <20170531223749.p6spzrgwtb3n2k65@alap3.anarazel.de> (raw)
In-Reply-To: <20170531214547.1500.25117@wrigleys.postgresql.org>
References: <20170531214547.1500.25117@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2017-05-31 21:45:47 +0000, marc@daelemans.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14681
> Logged by: Marc Daelemans
> Email address: marc@daelemans.com
> PostgreSQL version: 9.6.3
> Operating system: Win8.1 x64
> Description:
>
> select i, i&11 as j from generate_series ( 1, 100 ) i ;
Thats not the modulo operator? You're binary bitwise and-ing i and the
number 11 here.
> generates correct results on Win7 SP1, x64; 16GB machine, and
> erroneous results on another PC (Win8.1, x64, GB RAM).
Which results are you getting, and what you expecting?
Greetings,
Andres Freund
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, marc@daelemans.com
Subject: Re: BUG #14681: Erroneous modulo (%) result
In-Reply-To: <20170531223749.p6spzrgwtb3n2k65@alap3.anarazel.de>
References: <20170531214547.1500.25117@wrigleys.postgresql.org> <20170531223749.p6spzrgwtb3n2k65@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