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 1tpXOC-007QhW-66 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 18:53:12 +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 1tpXOA-0056ie-Cg for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 18:53:10 +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 1tpXOA-0056iW-2v for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 18:53:10 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpXO8-000xaI-1N for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 18:53:09 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2239aa5da08so50421365ad.3 for ; Tue, 04 Mar 2025 10:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1741114387; x=1741719187; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=GLH4aECxYj80ptCkGEsLHqe0zSyfTq3mTWBEE8zUI+8=; b=ewqYZrhpST8MwyYvKLaGbMhcr6jSPSHInpM3J23+oVG+Dt/EQFun/bax0zBVcnrYs0 QimDmH/02Ad/7FX8m5AtJ1Hg0GBrwFT8WYW37DwgAW5evGwocz6Zj57yK99c1tGAkgwJ l/cUjaw8kDHrfi0VKTOeYC41i/diA00OGybcS7CoMqbMnT8X7kbZEoNjZGj/nkX4Lo07 B6K8TsOncmIWgVpoqz84WZi+2qAV0adxYUaqJLd/fT7vCtYxYN7pbQ3NXhU8uoX/MV+T TCAFdlwoWzR/0VzhH3OuQ7Dr2+MpuNU8TCd7CTEEUqYalAOZFnCXa+7mRo9/6WxUmXqq VTzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741114387; x=1741719187; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GLH4aECxYj80ptCkGEsLHqe0zSyfTq3mTWBEE8zUI+8=; b=ENJeu+XE+bFIBtmEIsK+AJaI7zSvY/zW5WlDCJCunrRAsB78Zf10BLH8TJfo9KK4E0 1Ug5M8ApVKi/6XFxpQsXfiyh3q7vYVblg46A1ypwxin6BTDgF68LkPthmK9mEWSM3WMq m4q20X3Lq0uYdOPFMlUAIPs9FwrullPn0nybzL/S8Rt2cYb3vJNvzBs9wTG+KQgWkPJ/ +8We53kiaWjAM+ZXivd3GbcakN6NrRxIZc5EtyealwLAZ3o/MfAoIMpMEhFoJJwDSSSN asGkwBnIxYVq5NXf3BmhqriYdmx7Lbis249scIR3KAPHLeoh/wmTArgirKICKR8wp8T2 +hhQ== X-Gm-Message-State: AOJu0YyRrRpDRPZH4+1bLxnDF02UjQbxZzAep4ew79h3OSEDnVJOiwME H59IAn6JvUAytujhQDDsp2VgxBp2ZJNyzUQsGwBU4N/4OaWi2wuICIj+vcr/kA== X-Gm-Gg: ASbGncvj7xJiKrRP/Fs3eLeJW7cPwBgXz/eB/UEZUAl8utRpi9J5NsfK2FZmgCxQ2uA tjMoWidp+VfGUjLLAXp1Mu4bOVcNM/CDZkM3UP9v6eiyjTh4MDj3vovPwiYBOUOMVRzq1fmussl Wnf0fxLwGeRWKyCc0OfzkwnY9O5ZV9wuzbvoglioYqIv149fJrNufu/OY3lT/EqiT769g5cKb5l i8NVas4SkjjNtKtvAfuFR29ZsLMxK14xQT59W30JXddXqBzhCCjug0CylCcyfG4TKCwDAxw1f2j hxaZe+CguDDBwJQ4pM3le+CEK9PzI4I+HWlnBxnQrEyc1OZyYFG7FjAQYvllS3CSy0Hqp8DXmKT WLndTmUGGSk8= X-Google-Smtp-Source: AGHT+IEJobc7rT9E2vQqASE/aBrLy92o/ZFQQWVvPL300jzrdY03JoKC3OOgesfuGJLP+NHiocnGmA== X-Received: by 2002:a17:903:2282:b0:21f:55e:ed71 with SMTP id d9443c01a7336-223f1cb21ecmr5393205ad.5.1741114387456; Tue, 04 Mar 2025 10:53:07 -0800 (PST) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2235050d94csm99295285ad.201.2025.03.04.10.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 10:53:06 -0800 (PST) Message-ID: <5bbca514250c1f8ee45f08ada94184b0ae109fe9.camel@j-davis.com> Subject: Re: making EXPLAIN extensible From: Jeff Davis To: Robert Haas , Thom Brown Cc: PostgreSQL Hackers Date: Tue, 04 Mar 2025 10:53:05 -0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk +1 to the general idea, I didn't look at the patches yet. On Fri, 2025-02-28 at 15:32 -0500, Robert Haas wrote: > 1. It is much more verbose. I theorize that people will be unhappy > about having to type EXPLAIN (pg_overexplain.range_table) rather than > just EXPLAIN (range_table). That was my first reaction. > That's true. Of course, a lot depends on whether we end up with 3 or > 5 > or 8 EXPLAIN extensions or more like 30 or 50 or 80. In the former > case, the people writing those extensions will probably mostly know > about each other and can just use different names. I don't expect there to be zillions of extensions that only add new and exciting explain options. Instead, it seems more likely that all TableAM and CustomScan extensions will have 1-3 new explain options, and that some of those might collide. For example, several may have a EXPLAIN(PUSHDOWN) option that explains what work is being pushed down into the TableAM/CustomScan. In that case it's not even clear to me that a collision is a problem. Would you really only want pushdown information from extension A, and be upset that it also emits pushdown information from extension B? Maybe we should just allow multiple extensions to use the same option name? Regards, Jeff Davis