Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VmrNS-00069M-4A for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Nov 2013 20:42:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VmrNR-0004xC-Js for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Nov 2013 20:42:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VmrNQ-0004x5-LJ for pgsql-bugs@postgresql.org; Sat, 30 Nov 2013 20:42:56 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VmrNN-0002zN-M5 for pgsql-bugs@postgresql.org; Sat, 30 Nov 2013 20:42:55 +0000 Received: by mail-lb0-f180.google.com with SMTP id w6so7609681lbh.39 for ; Sat, 30 Nov 2013 12:42:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=avUFmbU2TjJOIY6Tam2o+l03XCHzlYk0CJjch6fXSHk=; b=m4EDbUedxkepUjK0RlY6J3El3osga/Eo77rEtmLHPAGVuhYMu6tZkrrxJ7SogS/1vs FDQ6eIi22x03ijRavDIrFZgUUYc9usKrLs/X63Rv0jBzVdsaOEtyGrJmGZsPbymNaTMX /uYFUZ8HSrsL5N0/J5Wm0g1o0v0yv/s31vl8Fuhy5ISXuPPGIjC1XKZ/yA1PrYjBzpyH zuTuA2EwU12hIRtXYXQys5YQbLMzJABQndZ2q3zpLe7Yap21ioJSg5LFDrJX/cWHiMkx N3zbsb2N85phW2Get9nli5wJM2FKVjWNu/ZRsl/egTVqhZJbk3Sa7/0dbOPXLzd+IQgJ xAuw== X-Gm-Message-State: ALoCoQkyQPkdujb8LBv4nLuVy+pjxyE4PK1OoFLQntj4ien2kZw7dFkyMe4WkFH86uqfp9Bf7rZC X-Received: by 10.152.28.161 with SMTP id c1mr2092635lah.24.1385844171878; Sat, 30 Nov 2013 12:42:51 -0800 (PST) Received: from dalli.local (c-59a6e355.026-50-73746f15.cust.bredbandsbolaget.se. [85.227.166.89]) by mx.google.com with ESMTPSA id xl4sm66799961lac.9.2013.11.30.12.42.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 30 Nov 2013 12:42:50 -0800 (PST) Message-ID: <529A4DC7.6000005@joh.to> Date: Sat, 30 Nov 2013 21:42:47 +0100 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Tom Lane , Oliver Seemann CC: pgsql-bugs@postgresql.org Subject: Re: Update with subselect sometimes returns wrong result References: <25601.1385834264@sss.pgh.pa.us> In-Reply-To: <25601.1385834264@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 11/30/13, 6:57 PM, Tom Lane wrote: > Oliver Seemann writes: >> And it does so, most of of the time. But when run repeatedly in a loop like >> in the attached script, then it will occasionally return 2 rows with two >> different id values, something the LIMIT 1 should prevent. In my tests it >> took from anywhere between 0 to 10 minutes and on average 1 to 2 minutes to >> trigger the problem. > > I failed to reproduce the claimed misbehavior in git tip of any active > branch. I'd like to think this means we fixed the problem in the last > two months, but I don't see anything that looks like a promising candidate > in the commit logs. Perhaps there is some important contributing factor > you've not mentioned --- nondefault postgresql.conf settings, for > instance. I've managed to reproduce this against REL9_1_STABLE (4bdccd8427718f9c468e5e03286252f37ea771b5). I'm on OS X mavericks, configure line: ./configure --enable-debug --with-openssl --with-perl --with-libxml --with-readline. Compiler Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn). No changes to postgresql.conf. Does that help? Do you need some more information? Regards, Marko Tiikkaja -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs