Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOTkd-0001tP-SU for pgsql-performance@arkaria.postgresql.org; Tue, 24 Sep 2013 14:38:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VOTkd-000892-Ak for pgsql-performance@arkaria.postgresql.org; Tue, 24 Sep 2013 14:38:07 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOTkc-00087o-7W for pgsql-performance@postgresql.org; Tue, 24 Sep 2013 14:38:06 +0000 Received: from 2605ds1-ynoe.3.fullrate.dk ([90.185.142.83] helo=shrek.krogh.cc) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOTkY-0005El-Uy for pgsql-performance@postgresql.org; Tue, 24 Sep 2013 14:38:05 +0000 Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id A726C3533DE; Tue, 24 Sep 2013 17:01:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QcJN6QKF9rNI; Tue, 24 Sep 2013 17:01:14 +0200 (CEST) Received: from shrek.krogh.cc (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 4896B3533C9; Tue, 24 Sep 2013 17:01:14 +0200 (CEST) Received: from 94.101.220.16 (SquirrelMail authenticated user jesper@krogh.cc) by shrek.krogh.cc with HTTP; Tue, 24 Sep 2013 17:01:14 +0200 (CEST) Message-ID: In-Reply-To: <5815.1380018947@sss.pgh.pa.us> References: <1379944816.30390.YahooMailNeo@web162903.mail.bf1.yahoo.com> <5815.1380018947@sss.pgh.pa.us> Date: Tue, 24 Sep 2013 17:01:14 +0200 (CEST) Subject: Re: Planner performance extremely affected by an hanging transaction (20-30 times)? From: jesper@krogh.cc To: "Tom Lane" Cc: "Kevin Grittner" , "Jeff Janes" , =?iso-8859-1?Q?Bart=C5=82omiej_Roma=C5=84ski?= , "pgsql-performance@postgresql.org" User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org > Kevin Grittner writes: >> Are we talking about the probe for the end (or beginning) of an >> index?  If so, should we even care about visibility of the row >> related to the most extreme index entry?  Should we even go to the >> heap during the plan phase? > > Consider the case where some transaction inserted a wildly out-of-range > value, then rolled back. If we don't check validity of the heap row, > we'd be using that silly endpoint value for planning purposes --- > indefinitely. That's not an improvement over the situation that the > probe is meant to fix. Apparently it is waiting for locks, cant the check be make in a "non-blocking" way, so if it ends up waiting for a lock then it just assumes non-visible and moves onto the next non-blocking? This stuff is a 9.2 feature right? What was the original problem to be adressed? -- Jesper -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance