Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGQPu-0001mE-Kf for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Jun 2017 13:45:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGQPt-0005Ye-Mw for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Jun 2017 13:45:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGQPs-0005Y9-UY for pgsql-bugs@postgresql.org; Thu, 01 Jun 2017 13:45:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGQPp-0001S4-DT for pgsql-bugs@postgresql.org; Thu, 01 Jun 2017 13:45:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v51DjO24015343; Thu, 1 Jun 2017 09:45:25 -0400 From: Tom Lane To: marc@daelemans.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14681: Erroneous modulo (%) result In-reply-to: <20170531214547.1500.25117@wrigleys.postgresql.org> References: <20170531214547.1500.25117@wrigleys.postgresql.org> Comments: In-reply-to marc@daelemans.com message dated "Wed, 31 May 2017 21:45:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15341.1496324724.1@sss.pgh.pa.us> Date: Thu, 01 Jun 2017 09:45:24 -0400 Message-ID: <15342.1496324724@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org marc@daelemans.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs