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 1tvuUu-0092ge-03 for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Mar 2025 08:46:28 +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 1tvuUs-0092Ta-De for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Mar 2025 08:46:26 +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 1tvuUs-0092TR-2B for pgsql-hackers@lists.postgresql.org; Sat, 22 Mar 2025 08:46:26 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tvuUq-000TAP-1A for pgsql-hackers@lists.postgresql.org; Sat, 22 Mar 2025 08:46:25 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so17841795e9.0 for ; Sat, 22 Mar 2025 01:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742633182; x=1743237982; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YiagLK9j+igxGpGVcdnoJ+cLdPZ/bEqSjRLoyhL4VhA=; b=L3AzSw8yIty5OKcny3jE8B/Q0zCHMioqw/PNfKgXBX7fbayhlEkU8vM1psesrfShFV +K34o3ggo/9ktXBfHmxvwGyWP7qbUuozqEhYf4uPqKeWmZyxgJZGWWgk0ZGgOGBOfWmf nfqXZ1Yb5c0TKbR/Pfj3AZE40vlB8gvW5CitBINdSmEfni6mcFHY9IwUQ6YLSXpypENV 99yEj1S0Z6vfjPLks17DlxULWjx7sZ5C0qsZMGcJAJD45n2r+EfEJHyRyutuyPiSMDaf rAfUjPpqz4+ccTJ52HZJd9Z8ZWd2Bgu0G/ouXHdXaE4yS2wbbvZQOTGQCS7CQbCvBMJ2 ke/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742633182; x=1743237982; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YiagLK9j+igxGpGVcdnoJ+cLdPZ/bEqSjRLoyhL4VhA=; b=nN/dIWmg43ozDgcofHfGNsnc7KiEl5VJuYB9SFBxLhg+L0eati1rrpaQym/EkIpqvC dzTjwO31o1XGF8GoXEiAcbyGYZSmllWnEIvWk68zXOmXAXLsvaogz6Kld9DfdbDQ+JWM IIeaJAFcGDPakpkL61DzMQ/zHBZBdA9+S4+mtMWa/1PmbiSfXm/vGdwVy4mnVB4Q9pvZ wYvzcL2M4QAhtE8DkCR6FPa18O2sW+VTo/fTqXzydAekHePQCnY2bKa7U6fzpcTcY1R1 m6i+LTLwXeQlXio3Xk5uiddON+5V3R8b08sG+lp8HB/7w1vdc1PFPHwkEzZa7+GKeIJq rmIA== X-Forwarded-Encrypted: i=1; AJvYcCWVjkCQpr2PAArNERozWbXmRAwt9bIr/e7NjqWfplzDzB5DqWGkwF8r7+1PX/aeEnW+6Mj+acTJyGCPdfch@lists.postgresql.org X-Gm-Message-State: AOJu0YwVUSB+K7faqg1RLoUarbPeJ+IUk+gxOwnQ0VqqSs7pcAl+Noob zYHE3e1DyeGL66s67rB7cKs3mGqMVyvT5U7qG8R+vA3RP1ZGertY X-Gm-Gg: ASbGncsdeeMI0/7FpNAmLZbanqmZjSPODTLJ0vK+00l/0/l/sytCHA8GU5P2wT07yer rDQe7XnY21FdUna24ijd2bIspnPric+91W74rZO/5aqpp4FMOFBR4P+pM/K6zsdvESIW5MD9Ixx KRe2MahyT4XczgRcJxwtTEN5sVbpW5JWeiUeheeXlWvxT7agUQmwctyjFU2uFQcp2sxKE0ZjvIF G+8hxHWDE92D1udB356SSYMxvglb5t4gYCNV2bj7jmrll2pOKGK+seLOGzQdS1e/vTpuszICnAc Lc5xWmtG0xZ+4aTIY8fQfYy26SyY7Bwk1pGYIFnKJeYkw+G/Km2ZqOMV3VvOJvyR2OVej1DhfSn xiRY= X-Google-Smtp-Source: AGHT+IGQsot9AdC995M9bb9j7fuCeiefTu8jqiVWtYfJhpixjoKN0NTybB8vneKi0U5aClmaeS+Kjw== X-Received: by 2002:a05:600c:4d1f:b0:43d:609:b305 with SMTP id 5b1f17b1804b1-43d5100ba49mr42497925e9.17.1742633181600; Sat, 22 Mar 2025 01:46:21 -0700 (PDT) Received: from [192.168.0.89] (84.123.232.230.dyn.user.ono.com. [84.123.232.230]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f556afsm100764575e9.19.2025.03.22.01.46.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Mar 2025 01:46:20 -0700 (PDT) Message-ID: <41ca9655-f905-4eec-96b3-8a3fef350548@gmail.com> Date: Sat, 22 Mar 2025 09:46:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: making EXPLAIN extensible To: Robert Haas Cc: Sami Imseih , Jeff Davis , Thom Brown , PostgreSQL Hackers , Tom Lane References: <2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com> <8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com> <1584338.1742582225@sss.pgh.pa.us> Content-Language: en-AU From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/21/25 20:54, Robert Haas wrote: > On Fri, Mar 21, 2025 at 2:37 PM Tom Lane wrote: > Here's v9, which also adds 'SET debug_parallel_query = off' to the > pg_overexplain tests, per CI, because the test results are not (and > cannot realistically be made) stable under under that option. I skimmed through the code and tested how it works. It looks good and has no apparent architectural dependencies. But I haven't scrutinised it line-by-line and do not intend to do so. I wanna say I hate the design of this module. Having a strong necessity for extra explain tools (in the daily routine, all I have is the only single explain analyse verbose output to find out planner/executor bug, reproduce it and make a patch), I don't see a single case when I would use this module. It adds a burden to fix its output on a node change (you don't care, but it adds work to Postgres fork maintainers, too, for nothing). Also, it breaks my understanding of the principles of the Postgres code design - to start the discussion on how to show more, we need only the bare minimum of code and output lines. In my opinion, it should show as few parameters as possible to demonstrate principles and test the code on a single planner node. It only deserves src/test/modules because it is not helpful for a broad audience. -- regards, Andrei Lepikhov