Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coihS-0003d8-SY for pgsql-committers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:37:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coihS-0000Ak-7S for pgsql-committers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:37:10 +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 1coihR-00009y-Hs for pgsql-committers@postgresql.org; Fri, 17 Mar 2017 03:37:09 +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 1coihP-0001sT-4r; Fri, 17 Mar 2017 03:37:08 +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 v2H3b67a007982; Thu, 16 Mar 2017 23:37:06 -0400 From: Tom Lane To: Andrew Gierth cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in In-reply-to: References: Comments: In-reply-to Andrew Gierth message dated "Thu, 16 Mar 2017 22:39:31 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7980.1489721826.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Mar 2017 23:37:06 -0400 Message-ID: <7981.1489721826@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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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=3Dcrake&dt=3D2017-0= 3-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. regards, tom lane --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers