Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzLej-0005cx-7M for pgsql-hackers@arkaria.postgresql.org; Wed, 17 May 2023 18:13:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pzLeh-0001XJ-NF for pgsql-hackers@arkaria.postgresql.org; Wed, 17 May 2023 18:13:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzLeh-0001X9-DT for pgsql-hackers@lists.postgresql.org; Wed, 17 May 2023 18:13:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pzLeZ-000OB9-UH for pgsql-hackers@lists.postgresql.org; Wed, 17 May 2023 18:13:42 +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 34HIDUAW3509104; Wed, 17 May 2023 14:13:30 -0400 From: Tom Lane To: Laurenz Albe cc: Kirk Wolak , Alvaro Herrera , Pavel Stehule , PostgreSQL Hackers Subject: Re: psql: Could we get "-- " prefixing on the **** QUERY **** outputs? (ECHO_HIDDEN) In-reply-to: References: <20230515141457.ovpznndsvulahbpk@alvherre.pgsql> <2153025.1684160932@sss.pgh.pa.us> Comments: In-reply-to Laurenz Albe message dated "Wed, 17 May 2023 19:45:06 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3509102.1684347210.1@sss.pgh.pa.us> Date: Wed, 17 May 2023 14:13:30 -0400 Message-ID: <3509103.1684347210@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > You removed the ******** QUERY ******** at the end of the query. > I think we should keep that (as comments, of course). People > are used to the current output, and it is nice to have a clear > visual marker at the end of what isn't normally part of "psql" > output. I agree. These considerations of what shows up in the readline log if you choose to copy-and-paste seem far secondary to the readability of the terminal output in the first place. Also, you'd have to avoid copying-and-pasting the query output anyway, so I'm not entirely sold that there's much of a usability gain here. regards, tom lane