Re: BUG #14681: Erroneous modulo (%) result

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: marc(at)daelemans(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14681: Erroneous modulo (%) result
Date: 2017-06-01 13:45:24
Message-ID: 15342.1496324724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

marc(at)daelemans(dot)com writes:
> select i, i&11 as j from generate_series ( 1, 100 ) i ;
> generates correct results on Win7 SP1, x64; 16GB machine, and
> erroneous results on another PC (Win8.1, x64, GB RAM).

I'm suspicious that you have some extension that redefines the & operator
and is installed on just one of the two machines. Running "\do &" in
psql on both systems would be informative.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2017-06-01 14:51:10 Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression
Previous Message ray.warren 2017-06-01 08:11:04 BUG #14683: *** glibc detected *** SELECT: double free or corruption