Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGCGE-0002fu-AV for pgsql-bugs@arkaria.postgresql.org; Wed, 31 May 2017 22:38:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGCGD-0005v3-Tt for pgsql-bugs@arkaria.postgresql.org; Wed, 31 May 2017 22:38:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGCFX-0004h0-7s for pgsql-bugs@postgresql.org; Wed, 31 May 2017 22:37:55 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGCFU-0003oC-Gn for pgsql-bugs@postgresql.org; Wed, 31 May 2017 22:37:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D9359207B0; Wed, 31 May 2017 18:37:50 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 31 May 2017 18:37:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=NAwaWYVo6vFxtvfP8h AqOCC1Y8LbrJVSHSstuU5fUd8=; b=sQdEemZBViz0dvC8Vn4GJjDuj4i6WauYLe 0AMg9Ev3NuphO0ehWCU2VSN/djbS/RRk57aKZEnOorNEZJRkOry710koJ7FvxDRp jAdQZP59wn8KBhb1k4oZdF+yqChTWFs0XK6fuJHMbehcK500cK+sCMO/7PmKhgwE 8ixtIWILChYLDkdmabuyBWrl7UMb7xvO7ADn3yB+Qc0PaLMRlonyxQHbjciCegcP D/M6WoZawVJsn2wxmJP6Qzy5j+A4xhyqRD56KGtS/Aya/4PHpfCBy75oLd28MvTd vtwAnqhI44zQmJG0RkQ8l4D9QlIh0efrv9/BDvqVuHct4Zlu6pRw== X-ME-Sender: X-Sasl-enc: LRQRaDRaNTl4/pnfCtmHo87Cf5MQqlpjfQjcxx2Bk2rs 1496270270 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 94AA47E263; Wed, 31 May 2017 18:37:50 -0400 (EDT) Date: Wed, 31 May 2017 15:37:49 -0700 From: Andres Freund To: marc@daelemans.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14681: Erroneous modulo (%) result Message-ID: <20170531223749.p6spzrgwtb3n2k65@alap3.anarazel.de> References: <20170531214547.1500.25117@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170531214547.1500.25117@wrigleys.postgresql.org> X-Pg-Spam-Score: -2.6 (--) 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 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