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 1orJTV-0000fp-1e for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Nov 2022 13:44:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1orJTT-0000pq-1R for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Nov 2022 13:44:39 +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 1orJTS-0000pf-LN for pgsql-hackers@lists.postgresql.org; Sat, 05 Nov 2022 13:44:38 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1orJTJ-00086X-Ca for pgsql-hackers@lists.postgresql.org; Sat, 05 Nov 2022 13:44:36 +0000 Received: by mail-qk1-x72b.google.com with SMTP id l9so4865235qkk.11 for ; Sat, 05 Nov 2022 06:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=z/zfkCOZWW2A5YkIWkLAEXjRcoz64mODdQLw8bGG680=; b=m+3TErM0tOT7WMbqI+JQ47KECV4XaH8FlTAY11fwms1Qep/kEakHhWN8FXqgJScB6Q +1gko//bG1R7hgEt+/c6tfftuj5e2GY921E/Ybg9BZ9454jxJKA09yqz0Ey1CwKQjhJ0 aJToOcFSV9/ewu8Jf77hEiuDwW+pQQYlQQPmWVo4FDvmukvyizxXkFKkDE0YtXTGLvOl FGJCaTTG1hhuXmZDuehYeic/fp1m6tfAR4wd/vAwNwWWCnnPG4IhSgvs5ux5r0cEU8zv YtvHYxPZPzHdegKmRnuaSkxxeN8v8JHal5OYGC03zjZEU777nN62ASsrFO1aHtOLz40t SHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z/zfkCOZWW2A5YkIWkLAEXjRcoz64mODdQLw8bGG680=; b=5GzF2CTtSO6LV+AD3mGPYEzyBRUbvFZv/Tz5zrtC+Wmbklju5ANdXeiJyKvl5ZnvaF 3bAgUA63rYUfA7TbNLvqtQSuCuHQmmNFvMTb5oEW3+4IYjBEPzDTi0zrofH1BH+xUVfZ CB2tAke7jMvjT0nxYaJsRq6MGxLG3tg0WpTAvPJq0lIPZcG7f/t3tWfdpJ/iFW2VTEVi pm0tTclpbocLIDqpAbn/OhZNBI529eempBaohT4SaBba7ApkpTwXnFri5L49IdqtwqZu 7O7mLCegVwNteDUSdr2uUV1QVfVImW5NMfi7WJ/1dgmOX6jBlF9G91EXlVaRDvbSUhym QfLg== X-Gm-Message-State: ACrzQf22FsSfZ+u18WizrN7NgVk8y4vsAyxd9t7nmTfjDqYbSS1TA0gn 8QKo2hAlSdHxGCUy8jrsifA/nw== X-Google-Smtp-Source: AMsMyM6/ffczR/eFHB8c0pWq28iAU4rJleDewEYI2q7DMoPruIiZRSYX2EBy3xz0qAwH4aT4rdqIOQ== X-Received: by 2002:a05:620a:1428:b0:6fa:4749:cb60 with SMTP id k8-20020a05620a142800b006fa4749cb60mr18959470qkj.73.1667655867159; Sat, 05 Nov 2022 06:44:27 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id cj25-20020a05622a259900b003a4c3c4d2d4sm1783819qtb.49.2022.11.05.06.44.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Nov 2022 06:44:26 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 6E87C8006F8; Sat, 5 Nov 2022 08:44:25 -0500 (CDT) Date: Sat, 5 Nov 2022 08:44:25 -0500 From: Justin Pryzby To: Laurenz Albe Cc: "David G. Johnston" , Nikolay Samokhvalov , pgsql-hackers@lists.postgresql.org Subject: Re: explain_regress, explain(MACHINE), and default to explain(BUFFERS) (was: BUFFERS enabled by default in EXPLAIN (ANALYZE)) Message-ID: <20221105134425.GF16921@telsasoft.com> References: <20211115190954.GO17618@telsasoft.com> <20211202005820.GJ17618@telsasoft.com> <20220124173548.GV23027@telsasoft.com> <20220905112031.GF31833@telsasoft.com> <20221021020934.GA13372@telsasoft.com> <033ff31aeeb5d0bb49a8e85df32d34e032ab5729.camel@cybertec.at> <20221028225904.GJ16921@telsasoft.com> <790e175d16cca11244907d3366a6fa376c33e882.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790e175d16cca11244907d3366a6fa376c33e882.camel@cybertec.at> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Nov 04, 2022 at 11:46:03AM +0100, Laurenz Albe wrote: > "explain_regress" reduces the EXPLAIN options you need for regression tests. > This is somewhat useful, but not a big win. Also, it will make backpatching > regression tests slightly harder for the next 5 years. But it doesn't cause backpatching to be harder; if a patch is meant to be backpatched, its author can still choose to write the old way, with (COSTS OFF, ...) > For me, an important question is: do we really want more EXPLAIN (ANALYZE) > in the regression tests? It will probably slow the tests down, and I wonder > if there is a lot of added value, if we have to remove all the machine-specific > output anyway. I don't intend to encourage putting lots of "explain analyze" in the tests. Rather, this makes that a reasonable possibility rather than something that people are discouraged from doing by its difficulty. Using "explain analyze" still needs to be evaluated (for speed and otherwise), same as always. In any case, I suggested to defer review of patches 004 and beyond, which are optional, and it distracts from the essential discussion about 001. > I would really like to see 0003 go in, but it currently depends on 0001, which > I am not so sure about. > I understand that you did that so that "explain_regress" can turn off BUFFERS > and there is no extra churn in the regression tests. > > Still, it would be a shame if resistance against "explain_regress" would > be a show-stopper for 0003. > > If I could get my way, I'd want two separate patches: first, one to turn > BUFFERS on, and second one for "explain_regress" with its current functionality > on top of that. You set the patch to "waiting on author", which indicates that there's no need for further input or review. But, I think that's precisely what's needed - without input from more people, what could I do to progress the patch ? I don't think it's reasonable to put 001 first and change thousands (actually, 1338) of regression results. If nobody wants to discuss 001, then this patch series won't progress. -- Justin