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 1tpUAa-006KT1-F7 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 15:26:56 +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 1tpUAZ-000KNu-0o for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 15:26:55 +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 1tpUAY-000KNB-Ni for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 15:26:54 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpUAW-000vns-2r for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 15:26:53 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-388cae9eb9fso3061304f8f.3 for ; Tue, 04 Mar 2025 07:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741102011; x=1741706811; 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=GBo+eLXFJ9VoAe5aYfqlErBIq/2I+TVgazot031jSX4=; b=Yt1S4/yCcehWNFC+SwRYlPHV18CSRGAQcAq+FO3ecsx4PwuJJWpAfoQ5eJ7qDmT7ia jekA72RKy3NOFBIF+YTKhTlz5Ul8bXtOe7YWGDZ3qmiUYmmE7hqCdynrJ5J+d9CdpQgS zBZBwQ1ig95NySYcArAtJC2C5jPPafnpFH33Re9lLEfbCGAE/r1fL4LMAuDf8CsYl2Cu U0eB7Jwn83iDYOIRTJ7EXc3UeU/Pt44KjKo5zGzusjo2VVgScKTf4XvBaKW+bg3FaZuQ qa06jY44VlST+/OBy71lKcyp/1Gg2zn7wZIAf8NOBNix0dugrYEZpKfoMRj98G7zooQl sGLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741102011; x=1741706811; 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=GBo+eLXFJ9VoAe5aYfqlErBIq/2I+TVgazot031jSX4=; b=c9q0F6UED6VWrTO0t9JnFq5STd44xizeCTKHC9F3lMQUnp/iFSSH1A5EIebr1ErY2O 42LHXFbLL+1I8opeffR2mZSRRs1auV6TUdDR0jh91K9eWMfd+gHLj6xkXEB/QU1KGeek 8K3xmJ18+y+LKrYr6OmfOQFEdSL53ZVpV7v6cvPkTWHl0ZtcsBzsg0jcI6/xvwBffHK0 +/VPGh/IEZj67bdDI4P6XM2ZYfEojnbRM8Tgghehsy6FlJFlO9TC35zUyZTzKRrSNFZ6 eQqdzh7KLj4OI2PGMsVXcN4mv35FO+T6gHvKVbqnUl/vmEg+66boSwoPzZ/mDMDrn4Nb 2TuA== X-Gm-Message-State: AOJu0YyCsc5fz4og7FhsHtFEGri+vIrVdbx7PHAyDSo5GyqfXpPxYCsL Y22LjDX4W17HIdwxKZpBVfMR7QpFSO8t+gVQd5iCjCF+6BcZRban X-Gm-Gg: ASbGncucyiHD5LN3bVZV2op6kuhEYaPnhDykTxYEw/hyF5V0yx0BtpHwtEVVhFeOzJr oJELVjAVBH2jYiFB16Jle2TrNtfYLmWya5xBr49l0MJoiT2X5Ri+YzF+UoXJ2MzOcLLQQQIPOTe 48xv40RZJBGDqsKedCBC4+nBGgLMS8TX3aQrKA0zsVN4Zm6lVjqhxqI0yDXtAmYOlMaIQG4q6uV MxfeeoUaVvaXzizbgJtMf+psptCltkMV2IDuCOsOikPoUWQsEx2zauZrZE/ZG+V//zMnMdZlMRD eEqLH8kHzvFrubsR9wE1wyLQjq+vlb6OLsTxqDnpYnDKXhiy5aNwIw== X-Google-Smtp-Source: AGHT+IH1T9DI+oNY5tpZIgqwLnKcT4FAbKOVOF4BdJyhGVnOuFJYFbTLEihq6+Te98Asl5QfQiXp9Q== X-Received: by 2002:a5d:6da3:0:b0:38d:da79:c27 with SMTP id ffacd0b85a97d-390ec7ca99amr14633958f8f.2.1741102011335; Tue, 04 Mar 2025 07:26:51 -0800 (PST) Received: from [172.20.10.4] ([77.211.4.186]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e485dcc1sm17623357f8f.87.2025.03.04.07.26.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Mar 2025 07:26:51 -0800 (PST) Message-ID: <84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com> Date: Tue, 4 Mar 2025 16:26:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: making EXPLAIN extensible To: Robert Haas Cc: PostgreSQL Hackers References: <754369a6-9017-4d5d-8fea-7768e5b94b0f@gmail.com> Content-Language: en-US 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 4/3/2025 16:14, Robert Haas wrote: > On Tue, Mar 4, 2025 at 10:12 AM Andrei Lepikhov wrote: >> Also, I think this feature is quite close to the discussion on the >> possibility of adding an extensible list field into Query, PlanState, >> Plan, etc. nodes to let extensions gather and transfer some additional >> data starting with the first 'analyze' hook up to the end of execution. >> For example, in solving user issues, I frequently need to know >> predictions on the number of groups in Memoize, IncrementalSort and some >> other nodes. Such extensibility could allow an extension to gather such >> internal data during the planning stage and show it in the explain >> without any changes in the core! > > If you're saying there's a -hackers discussion on this, could you > provide a link? I haven't seen it. > I wouldn't say there is a thread in the mailing list. I mentioned this direction of extensibility multiple times (for example, [1,2]) with no reaction. However, letting extensions show data in explan gives this idea additional impulse. [1] https://www.postgresql.org/message-id/30113d59-8678-49ca-a8fb-bbceacf7efb0%40gmail.com [2] https://www.postgresql.org/message-id/CA%2BTgmoYXgBVCnFhrW3X1NxpdjWtJCYRKP38PQ-AdR-RJziTBUQ%40mail.gmail.com -- regards, Andrei Lepikhov