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 1sM75T-000fFA-41 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jun 2024 14:23:59 +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 1sM75R-00G0cI-FL for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jun 2024 14:23:57 +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 1sM75R-00G0cA-6C for pgsql-hackers@lists.postgresql.org; Tue, 25 Jun 2024 14:23:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sM75P-0034Dk-1k for pgsql-hackers@lists.postgresql.org; Tue, 25 Jun 2024 14:23:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 45PENrDO1319008; Tue, 25 Jun 2024 10:23:53 -0400 From: Tom Lane To: Matthias van de Meent cc: jian he , PostgreSQL Hackers Subject: Re: add a new explain option including_query for include query string inside the json plan output In-reply-to: References: Comments: In-reply-to Matthias van de Meent message dated "Tue, 25 Jun 2024 12:30:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1319006.1719325433.1@sss.pgh.pa.us> Date: Tue, 25 Jun 2024 10:23:53 -0400 Message-ID: <1319007.1719325433@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matthias van de Meent writes: > On Tue, 25 Jun 2024 at 10:55, jian he wrote: >> for json format, add a new option to let the explain json output also >> include the actual query string. > Wouldn't the user be able to keep track of the query they wanted > explained by themselves? If not, why? Indeed. I do not think this is a good idea at all, even if the question of "where did you get the query string from" could be resolved satisfactorily. regards, tom lane