Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCUbp-0003yI-01 for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 19:02:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCUbm-0003iK-Ic for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 19:02:22 +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.89) (envelope-from ) id 1gCUbm-0003i7-3r for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 19:02:22 +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.89) (envelope-from ) id 1gCUbf-0002UC-E5 for pgsql-general@postgresql.org; Tue, 16 Oct 2018 19:02:20 +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 w9GJ1CTn024388; Tue, 16 Oct 2018 15:01:12 -0400 From: Tom Lane To: Rob Sargent cc: "pgsql-general@postgresql.org" Subject: Re: judging acceptable discrepancy in row count v. estimate In-reply-to: <37AF5C49-8550-4738-912D-859F685DB3D4@gmail.com> References: <37AF5C49-8550-4738-912D-859F685DB3D4@gmail.com> Comments: In-reply-to Rob Sargent message dated "Tue, 16 Oct 2018 12:13:28 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24386.1539716472.1@sss.pgh.pa.us> Date: Tue, 16 Oct 2018 15:01:12 -0400 Message-ID: <24387.1539716472@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rob Sargent writes: > Should reality be half again as large as the estimated row count? > coon=# select count(*) from sui.segment; > count > ---------- > 49,942,837 -- my commas > (1 row) > coon=# vacuum (analyse, verbose) sui.probandset; Uh, what does sui.probandset have to do with sui.segment ? regards, tom lane