Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coiot-0003z9-GY for pgsql-committers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:44:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coios-00048y-Um for pgsql-committers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:44:50 +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 1coioe-0003k1-Es for pgsql-committers@postgresql.org; Fri, 17 Mar 2017 03:44:36 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coioY-0001yq-0X; Fri, 17 Mar 2017 03:44:35 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 037C3208A0; Thu, 16 Mar 2017 23:44:29 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 16 Mar 2017 23:44:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; 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=qf4ao+nsfPvsbFVEB9 57bNm27PQ=; b=dmT3KUVDCyEsAMnM+km99G1fOppMjlcPnywIVNc7gWVWMvUa2G oaX+f8JPZXCR7oM8vZWdAaJlxl3SFoDOqu0iZSOo9eSeE5RkQxtBOVZWlug0yIt9 L5GtTU7CsftcuYN0Q2KLBOUt2vgNHRrqp6Fvl4uGhghKwtxywXY1LZzzrFTfBwsR KTbHqaBJtG0K4DjcDAnTu7M3IDcbuF6/HW7wrMJJeXiT/7fkZ6iYO5tDcaAailkF tsZpJ4CdvHO6Q2JN9w1v1dmTRJgPEVx2oAeLBmn2tFZNe1raGQvoJ5STfIHEpCz/ v3D8mf6rAQ1kBkzSFaQwcSIBxusZJ9w/ln+g== X-ME-Sender: X-Sasl-enc: a4NF0O+iMd9iGJ4dYySAqEI39Elu5bk3UJu3xteegwV0 1489722268 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id B350124526; Thu, 16 Mar 2017 23:44:28 -0400 (EDT) Date: Thu, 16 Mar 2017 20:44:27 -0700 From: Andres Freund To: Tom Lane Cc: Andrew Gierth , pgsql-committers@postgresql.org Subject: Re: pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in Message-ID: <20170317034427.2bpbaii6riswpiwk@alap3.anarazel.de> References: <7981.1489721826@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7981.1489721826@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2017-03-16 23:37:06 -0400, Tom Lane wrote: > Andrew Gierth writes: > > Avoid having vacuum set reltuples to 0 on non-empty relations in the > > presence of page pins, which leads to serious estimation errors in the > > planner. > > Hm, buildfarm results suggest this test is not entirely stable: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2017-03-17%2000%3A47%3A57 > > I have not looked very closely, but I'm suspicious that the test case > depends on no autovacuum transactions running concurrently with it. > Disabling autovac on the table itself is not enough to control whether > global xmin is being held back by some other autovac transaction > somewhere. Yea, brought it up on IRC too - he's gone for the night (Europe). I suspect changing things > might do the trick. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers