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 1ugbX5-005J9Z-Lw for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 04:01:44 +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 1ugbX3-00E6TR-QZ for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 04:01:42 +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 1ugbVf-00E3Xq-5y for pgsql-hackers@lists.postgresql.org; Tue, 29 Jul 2025 04:00:15 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ugbVd-001JXg-27 for pgsql-hackers@lists.postgresql.org; Tue, 29 Jul 2025 04:00:14 +0000 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-4aba1bc7f44so5239701cf.0 for ; Mon, 28 Jul 2025 21:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fittl.com; s=google; t=1753761613; x=1754366413; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mKPsVRqr6XE788+mjc49BJl8EstEaabUfMQGjeIsqKI=; b=H7ElT/fJuyHe8SlfjesZ9PpFkggP3ugUxDsN4PkSMsgDLS7NsKA2hHeQtWN0uZne7z tjlh82v8TgkkF4Ry6pUvSBX+XtBGbwXRunmQ9CWJPR1KbkL0g8zTkJyTz+8SXBQgGZab SVAPpAoAnmwQ3EJAqAj3ZIlR1j2AYqG42Q1cc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753761613; x=1754366413; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mKPsVRqr6XE788+mjc49BJl8EstEaabUfMQGjeIsqKI=; b=U9JtnpIIDtst1qVQX0h8YusW+7mwbUS+uHbL1vkGsXH1X5xzYHbQCTJ7V0jukji6li nbVwbju3DI7daL9vbRCcarrFoHyjQS8DEfyEUUDMIixrCKDTWx53Da/841IoT6Ft1yDu 2+2tscrZ6cOxmJd8YUPEK8vMAaC9+kDqqHBF6fkOWpJJ5pGw937jXsL9PySPuaKUz4qZ irNoU9H6qVK1PA+FE7RDl/SC7oMeACWqnzrF0mI4SdlJAr46qqg+2j/tXpNMd7ve+29h vaqgJUCbl5uJbypBg8OeOoGTGSaoboNKX0VCOgGLv2ZJFDQrdu+0AblT5HX5QxQkqGmf p3Dw== X-Forwarded-Encrypted: i=1; AJvYcCXVOip9tLVaBzTW8OAYHHJP9YZSXWaZSi2y0zQEdwPoglby4jnF/i6ou88ekxCCe3nmdfDlOdPsmZURhG5H@lists.postgresql.org X-Gm-Message-State: AOJu0Yz7YLfoDA8dnHirqE7CeKpTuPqmdfD50en8kPNs63CIqUSaoboe F8REbXosMXQxpUqFvWCE9M1781flxO7lZ+QfIOrz5rBHQg6W7Ak+TLLS2/N9NiWHWSDmhxxv+Yb XK+FSnSaX22ilOgVaeRUVGO9q/2q4X4IEsarLHs+n X-Gm-Gg: ASbGncurp0hM8MYWcAUrMwtOaWr6WiMx9YLNI4vX8HMXo+NInzXX5Dd3Jz3Rp4xLMET K+8p+NQFrkw4gphQY49tspjV4lTKcnkSaZd8BqhlMzsrE6Dz+kq+ZrYm4oGeoqQfRyXuGIc8ZbT 0+nhSdQPvFnmIKdNPA6yFOTLAdfmLcxgmL/bG9bJ7Fl39pH8/9IPTikp5Qp71VLYGFo4hi/5rPm P2fRN5e X-Google-Smtp-Source: AGHT+IFS/WFlRIwzpzuKPnm+PguYPmGfaknDzkcru9NlPjk2ECzyx/eFjCowNjyQLvDeiy2aMLN3DTvw+R5oXEIgSi0= X-Received: by 2002:a05:622a:120c:b0:4aa:105c:a0d5 with SMTP id d75a77b69052e-4aecc8fa6e4mr33334231cf.16.1753761612649; Mon, 28 Jul 2025 21:00:12 -0700 (PDT) MIME-Version: 1.0 References: <3ea66a50-e4b0-4f20-ae0c-4d9cbaf81cfb@tantorlabs.com> <0e8dc4fa-3655-4e9f-9424-9b32a15e6acd@tantorlabs.com> <7e995158-157e-4ec6-a7c8-266c1a6f7b43@tantorlabs.com> <06840539-e321-4930-9f89-cfc783c5b80a@tantorlabs.com> <15e0422a-31ec-4e82-b0cf-0839f636b185@tantorlabs.com> <5c7034c4-c48b-428b-ab3f-67f14d9f542e@tantorlabs.com> <34407b2d-946b-40cd-a665-49ca6af62fb9@gmail.com> <3a4bff1b-f6d5-41d4-b956-2da25bed0aae@tantorlabs.com> In-Reply-To: From: Lukas Fittl Date: Mon, 28 Jul 2025 20:59:35 -0700 X-Gm-Features: Ac12FXxm9krcx67EAIvmAC3ptrWPVJ1ITjz9_EUKDuY6EmCRDAPjr2rUPdima6Y Message-ID: Subject: Re: Add estimated hit ratio to Memoize in EXPLAIN to explain cost adjustment To: David Rowley Cc: Ilia Evdokimov , Andrei Lepikhov , Robert Haas , Tom Lane , Daniel Gustafsson , PostgreSQL Hackers , Nikolay Samokhvalov Content-Type: multipart/alternative; boundary="000000000000f177b7063b0971ed" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f177b7063b0971ed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 28, 2025 at 8:26=E2=80=AFPM David Rowley = wrote: > I understand not everyone got what they wanted here, but I hope what's > been added is ok for the majority of people. > For what its worth, the last version you posted (v11) looks good to me as well, and +1 on the "Estimates:" style that puts them all on one line in text mode. I think this will help a lot in understanding Memoize's impact on plans better, thanks everyone for pushing this forward! Thanks, Lukas --=20 Lukas Fittl --000000000000f177b7063b0971ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 28, 2025 at = 8:26=E2=80=AFPM David Rowley <dgrowleyml@gmail.com> wrote:
I understand not= everyone got what they wanted here, but I hope what's
been added is ok for the majority of people.
For what its worth, the last version you posted (= v11) looks good to me as well, and=C2=A0+1=C2=A0on the "Estimates:&quo= t; style that puts them all on one line in text mode.

<= div>I think this will help a lot in understanding Memoize's impact on p= lans better, thanks everyone for pushing this forward!

=
Thanks,
Lukas

--
Lukas Fittl
--000000000000f177b7063b0971ed--