Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAoSW-00054i-Eo for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Apr 2018 03:17:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAoSV-0001Ww-Cd for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Apr 2018 03:17:35 +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.89) (envelope-from ) id 1fAoSV-0001Wm-5O for pgsql-hackers@lists.postgresql.org; Tue, 24 Apr 2018 03:17:35 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAoSQ-0000yK-UI for pgsql-hackers@postgresql.org; Tue, 24 Apr 2018 03:17:34 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w3O3HOr5003618 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 23 Apr 2018 20:17:24 -0700 Date: Mon, 23 Apr 2018 20:17:23 -0700 From: David Gould To: Justin Pryzby Cc: Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuples inaccurate. Message-ID: <20180423201723.3e5865ad@engels> In-Reply-To: <20180424010921.GN13438@telsasoft.com> References: <20180304191918.39e95382@engels> <20180424010921.GN13438@telsasoft.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVbDK1H1kLtbsszSojyzV4G2m0HSLVeWrr4Q9JwQNsq7VpksGEtqcioSXWwV4qqe9dWP/9QrDYxxvTjWckrYmiLa X-Sonic-ID: C;qDslAm5H6BG2gCAFsE207w== M;+KlSAm5H6BG2gCAFsE207w== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 23 Apr 2018 20:09:21 -0500 Justin Pryzby wrote: > Just want to add for the archive that I happened to run across what appears to > be a 7-year old report of (I think) both of these vacuum/analyze bugs: > > Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuples inaccurate. > Re: [HACKERS] VACUUM and ANALYZE disagreeing on what reltuples means > > https://www.postgresql.org/message-id/flat/6373488.29.1323717222303.JavaMail.root%40store1.zcs.ext.wpsrv.net#6373488.29.1323717222303.JavaMail.root@store1.zcs.ext.wpsrv.net Nice find. It does look like both, although, since the info is not in the thread it is not certain that relpages was large enough to hit the analyze issue. Unless that was with the old default statistics target in which case it would be pretty easy to hit. -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects.