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 1lpA6P-0006vT-9U for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 13:43:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lpA6O-00056r-AG for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 13:43:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpA6N-0004oP-Kz for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 13:43:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpA6L-0007fm-OF for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 13:43:07 +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 154Dh3T9143205; Fri, 4 Jun 2021 09:43:03 -0400 From: Tom Lane To: Laurenz Albe cc: David Rowley , =?ISO-8859-1?Q?P=F3l?= Ua =?ISO-8859-1?Q?Lao=EDnech=E1in?= , PostgreSQL General Subject: Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. In-reply-to: References: Comments: In-reply-to Laurenz Albe message dated "Fri, 04 Jun 2021 14:55:14 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <143203.1622814183.1@sss.pgh.pa.us> Date: Fri, 04 Jun 2021 09:43:03 -0400 Message-ID: <143204.1622814183@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Sat, 2021-06-05 at 00:12 +1200, David Rowley wrote: >> As for the call to generate_series, you're not likely to ever get any >> great estimation from that. > "generate_series" has a support function from v12 on: True, but I don't think it can do anything with non-constant inputs, as we have in the OP's case. regards, tom lane