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 1ortdJ-0000FI-4t for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2022 04:21:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ortdH-0002Rp-7V for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2022 04:21:11 +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 1ortdG-0002Rf-Nw for pgsql-hackers@lists.postgresql.org; Mon, 07 Nov 2022 04:21:10 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ortdA-0004tw-PT for pgsql-hackers@postgresql.org; Mon, 07 Nov 2022 04:21:09 +0000 Received: from [192.168.28.53] (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 9989321C36FD; Mon, 7 Nov 2022 07:21:00 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1667794861; bh=sionwrk4UnZvDnmjp0J8yhkkfJigmpW7lu+TBSQES24=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=fHQVy790Cbu+NK9hBcPHhHfzp6hQGb/Uj2TvNJzfEknHfh1NaQLniMdKlQdHq4OF5 Rfh+S9AloCPYN4AwRJwWCh/GIYan99k3cXXkMlQ5mfycqwYnkv0NMDbaIk+H66f7Gd ddZrlj5vnF8Hu8mWHR7D8+IkFwPUkrpRAh85jklA= Message-ID: Date: Mon, 7 Nov 2022 10:20:59 +0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: explain analyze rows=%.0f Content-Language: en-US To: Amit Kapila , Justin Pryzby Cc: Peter Geoghegan , Robert Haas , Greg Stark , vignesh C , Ibrar Ahmed , "David G. Johnston" , pgsql-hackers , Simon Riggs , Ron Mayer , Euler Taveira de Oliveira , Tom Lane References: <20220707222015.GD13040@telsasoft.com> From: Andrey Lepikhov Organization: Postgres Professional In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22/7/2022 16:47, Amit Kapila wrote: > I feel the discussion has slightly deviated which makes it unclear > whether this patch is required or not? After quick review I want to express my thoughts. At first, We have been waiting for this feature for years. Often clients give an explain to us where we see something like: "rows=0, loops=1000000". Without verbose mode, I can't even understand whether this node produces any rows or not. So, I think this feature is useful for parameterized plans mostly. Also, printing two decimal digits or even three isn't meaningful - sometimes we have a plan where number of loops is about 1E6 or even 1E7, but number of real rows is equal 100 or 1000. To overcome this issue, I see two options: 1. Show the exact number of tuples without division by loops (fair case but invasive and bad for automation tools). 2. Show rows in scientific format like X.XXEXX. I vote for second option. -- regards, Andrey Lepikhov Postgres Professional