Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnBJI-0007qU-VZ for pgsql-general@arkaria.postgresql.org; Wed, 17 Nov 2021 03:08:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnBJG-0006gv-BO for pgsql-general@arkaria.postgresql.org; Wed, 17 Nov 2021 03:08:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnBJG-0006gl-15 for pgsql-general@lists.postgresql.org; Wed, 17 Nov 2021 03:08:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnBJD-0006LG-6Z for pgsql-general@lists.postgresql.org; Wed, 17 Nov 2021 03:08:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AH38PxZ2367041; Tue, 16 Nov 2021 22:08:25 -0500 From: Tom Lane To: Michael Lewis cc: PostgreSQL General Subject: Re: Row estimate on empty tables In-reply-to: References: Comments: In-reply-to Michael Lewis message dated "Tue, 16 Nov 2021 18:55:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2367039.1637118505.1@sss.pgh.pa.us> Date: Tue, 16 Nov 2021 22:08:25 -0500 Message-ID: <2367040.1637118505@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Lewis writes: > ref: > https://www.postgresql.org/message-id/9772.1510348781%40sss.pgh.pa.us > This functionality hasn't changed in the years since this post, right? I'm > dealing with temp tables specifically, but seem to be getting bit by this > behavior occasionally so I would like to confirm. We did improve matters in v14, see https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=3d351d916 (It looks like the v14 release notes say nothing about this, which perhaps was a bad idea.) regards, tom lane