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.94.2) (envelope-from ) id 1uL0qt-00GTMk-QB for pgsql-hackers@arkaria.postgresql.org; Fri, 30 May 2025 14:36:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uL0qr-002b0q-2R for pgsql-hackers@arkaria.postgresql.org; Fri, 30 May 2025 14:36:53 +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.94.2) (envelope-from ) id 1uL0qq-002b02-OG for pgsql-hackers@lists.postgresql.org; Fri, 30 May 2025 14:36:52 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uL0ql-000tx0-17 for pgsql-hackers@postgresql.org; Fri, 30 May 2025 14:36:50 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id 3E41661B7D; Fri, 30 May 2025 23:36:41 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <2646bd0e-aeb1-4d38-a0ca-2564ce2d99e8@oss.nttdata.com> Date: Fri, 30 May 2025 23:36:40 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Proposals for EXPLAIN: rename ANALYZE to EXECUTE and extend VERBOSE To: Jelte Fennema-Nio , David Rowley Cc: Michael Christofides , Guillaume Lelarge , Greg Sabino Mullane , Robert Haas , "David G. Johnston" , Nikolay Samokhvalov , Tom Lane , pgsql-hackers@postgresql.org References: Content-Language: en-US From: Fujii Masao 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 2025/05/30 21:43, Jelte Fennema-Nio wrote: > On Fri May 30, 2025 at 1:55 PM CEST, David Rowley wrote: >> By my count, those who think we should change log_buffers to true are: >> Robert [1], Michael Christofides [2], Fujii [3]. > > +1 for me on changing the default. It just seems confusing to have > different defaults for auto_explain and EXPLAIN. I'd even vote for > making that change still for PG18, since this feels like an oversight > that the defaults were not kept aligned. > > >> log_min_duration = 0, log_buffers = off: 11231 tps >> log_min_duration = 0, log_buffers = on: 11106 tps >> log_min_duration = -1 (off): 13297 tps >> >> So it is possible to measure it, at least. > > Seems small enough not to worry about it. Users can simply disable log_buffers if they enable log_analyze but don't need buffer usage details and want to avoid the overhead. If there were no way to avoid the overhead, I'd agree not to make this change. But since we can disable log_buffers when needed, I think it's acceptable. Regards, -- Fujii Masao NTT DATA Japan Corporation