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 1tpSlM-005wgK-PV for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 13:56:48 +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 1tpSlK-00FniP-0X for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 13:56:46 +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 1tpSlJ-00Fnga-Nw for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 13:56:45 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpSlI-000v3r-03 for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 13:56:44 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-43bcc02ca41so6705315e9.0 for ; Tue, 04 Mar 2025 05:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741096602; x=1741701402; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=fGL7kJ6m8RaC/LfMO9DeuJrH080oD/p1oTAwEXkErBg=; b=EBL8ezoN6AjifoemzhH4hUl8paQR7Y/+WP/WJicA02nsGVB3UpGTcCCA++JeduUcf+ wb5QO36rGILTbe/FSHTuGIf6D+cFmY3wr96antsISpNufW+cpLU4klhncuRmk+z609nU 8s5Fi3ECvYG63W6G6/pLv7akJXBeYKsFRTr29Iddh1Urs27borDKQjyBlw1ZSYWz8p6Z CDItCk3VbTR3tS3y2nlwY0egUpilPfCndTdHqX/djt7m0CYjQpr4vpEtxrJKJTvLwfXc nCYW8d4vTA3JAsiidbTx21LN5s6YqwzIbA38Hy1z2qNwQmaT+VPSgsqBL7dyde/hZloZ jLvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741096602; x=1741701402; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fGL7kJ6m8RaC/LfMO9DeuJrH080oD/p1oTAwEXkErBg=; b=SX1m6Xu7qpKAXRsKSKqHa6aMkOpWDJBdVYYvCKDkA3d6IPOyeHw9i2Z5nBhA38ipm4 LBLuNltqWsKowALKXM890YBHE4uDqydcg1tk+OzHWl03nW7+KVQGv3M1fixdEX4mq6yK ItzFIjKkDMhIsfm/vd1bGw6xR5TmeBhGyHE44Lq6JvHAmJpuMAywGdYvZubM8jVnhpqf 7zO2dvock+QDUf/J7LwR5FgZCJyGeLAQfoSztTm6iX3akthFL3Vie4cHXWDWzzDWMn5Q OQQEPog2BSKQax2ktFue8iZeJDJEZGGjeyG+qRtWqXjuPq/f/XuAMwKPQgvy3fPoa7uy D4UQ== X-Forwarded-Encrypted: i=1; AJvYcCWZdOANRZ/HArakyiDf2XWVtphCbuvkHil44Xg3X/XI3imvGKcgNpn/8WQsGPM29Pv7aYAGaHCebYI1lee2@lists.postgresql.org X-Gm-Message-State: AOJu0YzXSpr7Gnx2vDB1cU7dviKbPSrtKvfBvIMU0yV9VY0KahwArh/x 5VPDd9RFsKQpL4ABPMBLdkZM1I0ZMOo6arLuwObR7qGqF++5obJh X-Gm-Gg: ASbGncv3BjcSbgruJgwpiMES9HsgssL9SENU6N+MMzrU0ttJ49+DRnbAPDZN95imKDS SKjv/CZM9sOlkVfK5Ow90K+Fs6ABRqzw8qIAlKx1TrK125UnFpSrhubONxVLKy4dvp7HGmZqagD 3NOSfMb2o+wQ7eIZ+q/mifTNEPgYGOuq9sNcGZTxbYMC+l4Pa7OGfmMLJUCGBPt+R4mGxtJs6CL ehgJgkhpRI4TL2M9nBEiCVU73Y9tkAROTC25iyXl7MgcVhzKMDYaPPkClPaDijMJhuThdWL367Z jIKMHFKK8vYhbVmFlCTQMnhh4RORI19Xnp+GT5fStCPqPo2IWz76bA== X-Google-Smtp-Source: AGHT+IEH2/+MiVItLDNPlk8a5JbKo+WX4NsR1e+bIxHTdptYyfa+KpHWOpfpfVLfwODh2+FqE+zvGQ== X-Received: by 2002:a05:600c:4f02:b0:439:6e08:f4 with SMTP id 5b1f17b1804b1-43ba6a83dbamr120217025e9.26.1741096602041; Tue, 04 Mar 2025 05:56:42 -0800 (PST) Received: from [172.20.10.2] ([77.211.4.186]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43bce4313f7sm12449015e9.30.2025.03.04.05.56.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Mar 2025 05:56:41 -0800 (PST) Message-ID: <754369a6-9017-4d5d-8fea-7768e5b94b0f@gmail.com> Date: Tue, 4 Mar 2025 14:56:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: making EXPLAIN extensible To: Robert Haas , PostgreSQL Hackers References: Content-Language: en-US From: Andrei Lepikhov 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 28/2/2025 20:26, Robert Haas wrote: > So here are some patches. Yes, this is a big pain for extension developers. As I remember, it was discussed multiple times in the hackers' mailing list. Because there is no explain node hook, I use a patch in almost each of my extensions: I write optimisation helpers, and it is necessary to show which node was influenced and how. I guess pg_hint_plan will also profit from this extra extensibility. Passing through the patches, I would say that changing the order of 0001 and 0002 would make them more independent. Also, I'm ok with the floating order of extension messages in the explain output. We get used to living with dependencies on extension load order (pg_stat_statements quite annoyingly impacts queryid, for example), and this issue should be solved generally, in my opinion. I support the way where extensions are allowed to print info but not restructure or remove something. Wait for the commit! -- regards, Andrei Lepikhov