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 1uKUtz-004y0M-5q for pgsql-hackers@arkaria.postgresql.org; Thu, 29 May 2025 04:29:59 +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 1uKUsy-005XZb-1S for pgsql-hackers@arkaria.postgresql.org; Thu, 29 May 2025 04:28:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uKUsx-005XXt-Nk for pgsql-hackers@lists.postgresql.org; Thu, 29 May 2025 04:28:55 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uKUst-000U5l-1w for pgsql-hackers@postgresql.org; Thu, 29 May 2025 04:28:53 +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 E0B9F61B75; Thu, 29 May 2025 13:28:45 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: Date: Thu, 29 May 2025 13:28:45 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Proposals for EXPLAIN: rename ANALYZE to EXECUTE and extend VERBOSE To: Michael Christofides , David Rowley Cc: 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 2024/12/14 0:59, Michael Christofides wrote: > > I've pushed the main patch. > > Woohoo! And thank you. I've already seen quite a lot of positivity around the commit on Twitter[1][2][3]. > > > I'm not planning on pushing the auto_explain.log_buffers default change unless there's a bit more discussion about it. > > Much like Guillaume, I'd also be in favour of 0002, but it's nowhere near as important to me. I think most people consider the parameters far more when setting up auto_explain, so I believe far fewer omit buffers by mistake. Also, most cloud providers don't ship with auto_explain on, and the only one I know of that does[4], ships with log_buffers on too. On the plus side, it would be nice to be consistent. But on the downside, it might add a little extra overhead for folks who run auto_explain with log_analyze on, and who opted not to set log_buffers and upgrade without setting it to off explicitly. I am still in favour of the 0002 patch being applied, to avoid confusion and maximise the chance people that don't know about buffers still get them in their plans. I agree with changing the default value of auto_explain.log_buffers to true. I think that users who know EXPLAIN ANALYZE includes buffers info in the result by default since v18 would expect the buffer info also to be included in auto_explain output as long as log_analyze is enabled. So setting log_buffers to true by default would be less confusing. As for 0002 patch, should the example log output with log_analyze enabled also be updated to show the buffer information? Sorry for reviving this old thread, but while testing the new v18 feature - buffers being shown by default - I had the same thought about auto_explain.log_buffers, so I wanted to chime in. Regards, -- Fujii Masao NTT DATA Japan Corporation