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 1t2DbB-002VLv-JG for pgsql-general@arkaria.postgresql.org; Sat, 19 Oct 2024 17:50:45 +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 1t2Db9-005sF6-IT for pgsql-general@arkaria.postgresql.org; Sat, 19 Oct 2024 17:50:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2Db9-005sC7-6Z for pgsql-general@lists.postgresql.org; Sat, 19 Oct 2024 17:50:43 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t2Db7-001wEK-Dc for pgsql-general@postgresql.org; Sat, 19 Oct 2024 17:50:42 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-28896d9d9deso1318874fac.2 for ; Sat, 19 Oct 2024 10:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729360239; x=1729965039; darn=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=x4Dc5jetuA2RkQjPXyGY2nWRkS1d5Zx8JByJqaodZI0=; b=Zrd7Ascwgd/xqqnjhGxjA+GXPLosn+wTTitWIbOWERVnzx2lctXi5hYJmMC+PCR4ax vk46rnmQPMNdiFUwEbBcuAeXC3GqLuw1xUQcOSr9MWlD8O9LEuNQjggpBsKRmUtm4zDf 6M2oRCEkzt4ObUKPI1nn3K2SkyjXYqBTtXkOhb7EvD7x0a8NREJ1HEvKLKgP0H+tyiDq 0khl6aPz8lotYwlSQVdneDFZwnIHQz/CwqVozRZDh7FMKRBAfijlsuDix17K+izquVqd tn7dK5QbZ58tc2w5PlwazR3c2d41h9KE61MDIKl9Rpdge4OGTa7E8v9IpUS0KgR7ouKa NHIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729360239; x=1729965039; 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=x4Dc5jetuA2RkQjPXyGY2nWRkS1d5Zx8JByJqaodZI0=; b=wWqbL2WW9uuYsn+ET6DfCYcNCl6kJ/8GXMM8hL/Gn7vPzWVZhrDbfbsDEzcN5vG3US cF/Ej17XQembIWfF5eXUvvJE/HFtscxoXIwdf8VtNJX/noWTzlAsLQrtFCBDPhpvEGid t7hfXWQZIUKTAce2UE4sf5Yh0xcUcDBVjRC9rnipDis2/5UiyRPgFAd/prT8iuU0TgKR Kx/9AoR76y2G3H1UL/cL3rS5QGKr4By8Uf6QN0ClTMMkMC7BEE4ubuUx8Tk1OcsmStMo u2E2EgAt9DUcq8+SShIrJ+avimL0tiXLLM7329MT7PMB5lNwrlStriLjeREe6wNsWR/Q myuA== X-Gm-Message-State: AOJu0Yy3UEPPDFgdgwgfQ168r2Vy3inSwzXC5wSFrZNYaICrGlk/yVhW hAYvESnMWWd0qKRM/HpjVirwjFTWwRIqFrzMmUKDeX5tsdNU6Inb8Yec7kEUfWSPkDwjQJtxuDj fqviJFGu2t6GS+GnYpADd7HGxFsf+yg== X-Google-Smtp-Source: AGHT+IFV5w4kRQKXzS1aCmVrPsTOuK6eQXUc7dLhurA7I6JiFqVY2XkMVlUf80JpP5yctKZiHpWxO6YhozPMJpYhloc= X-Received: by 2002:a05:6870:808b:b0:25e:fb:af8c with SMTP id 586e51a60fabf-2892c2d0b7emr5384288fac.18.1729360238939; Sat, 19 Oct 2024 10:50:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Sat, 19 Oct 2024 10:50:01 -0700 Message-ID: Subject: Re: explain vs auto_explain To: Vijaykumar Jain Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000bb15730624d80e49" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bb15730624d80e49 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Oct 19, 2024 at 10:43=E2=80=AFAM Vijaykumar Jain < vijaykumarjain.github@gmail.com> wrote: > i tried to check the code for auto_explain , there is nothing that helps > understand why it was provided as a separate . > Probably because output to log was easier than reworking the internals to make output to client happen. If you are interested in working on a patch to address your use case I say go for it. Designing the inputs and outputs actually doesn't seem that challenging, if exceptionally vulnerable to bike-shedding. But I imagine the internals are quite a different matter. David J. --000000000000bb15730624d80e49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Oct 19, 2024 at 10:43=E2=80=AFAM Vijaykumar Jain &= lt;vijaykumarjain.github= @gmail.com> wrote:
i tried to check the code for auto_explain , there is= nothing that helps understand why it was provided as a separate .

Probably because output to log was = easier than reworking the internals to make output to client happen.
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">
If you are interested in working on a patch to address your = use case I say go for it.=C2=A0 Designing the inputs and outputs actually d= oesn't seem that challenging, if exceptionally vulnerable to bike-shedd= ing.=C2=A0 But I imagine the internals are quite a different matter.
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">
David J.

--000000000000bb15730624d80e49--