Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wWezJ-002ln2-2I for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2026 18:46:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wWezI-003ZmK-1w for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2026 18:46:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wWezI-003ZmC-13 for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2026 18:46:16 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wWezG-000000021Ce-0zU9 for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2026 18:46:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 658IkCcF581813; Mon, 8 Jun 2026 14:46:12 -0400 From: Tom Lane To: Kyotaro Horiguchi cc: li.evan.chao@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Adjust pg_stat_get_lock() prorows to match lock types In-reply-to: <20260608.142000.1993011436447649540.horikyota.ntt@gmail.com> References: <75836FCA-2A8A-4DED-A13F-888595460A2D@gmail.com> <20260608.142000.1993011436447649540.horikyota.ntt@gmail.com> Comments: In-reply-to Kyotaro Horiguchi message dated "Mon, 08 Jun 2026 14:20:00 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <581811.1780944372.1@sss.pgh.pa.us> Date: Mon, 08 Jun 2026 14:46:12 -0400 Message-ID: <581812.1780944372@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kyotaro Horiguchi writes: > This discussion also made me wonder whether the documentation could be > a bit more explicit that prorows is intended as a planner estimate > rather than an exact row count. >> Estimated number of result rows (zero if not proretset) +1. For the most part, I'd expect that to be obvious from the fact that it's a constant ... but maybe being explicit would help. regards, tom lane