Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFgzm-0000b7-9u for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Oct 2019 15:56:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFgzk-00050J-OK for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Oct 2019 15:56:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFgzk-000509-DP for pgsql-bugs@lists.postgresql.org; Wed, 02 Oct 2019 15:56:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iFgzi-0003gI-84 for pgsql-bugs@lists.postgresql.org; Wed, 02 Oct 2019 15:56:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x92FulAJ007947; Wed, 2 Oct 2019 11:56:47 -0400 From: Tom Lane To: pavlo.golub@cybertec.at cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16034: `\set ECHO all` doesn't work for \e command In-reply-to: <16034-a7ebf0622970a1dd@postgresql.org> References: <16034-a7ebf0622970a1dd@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 02 Oct 2019 15:47:45 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7945.1570031807.1@sss.pgh.pa.us> Date: Wed, 02 Oct 2019 11:56:47 -0400 Message-ID: <7946.1570031807@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > I want command sent to the server with \e command to be echoed to the > terminal. Uh, what? \e doesn't send anything to the server, it just edits the query buffer locally. I could interpret your request as being that ECHO_HIDDEN causes "hidden" commands to be shoved into the command history (whence they could be recalled and edited) as well as being echoed. While I can see some use-case for that, I think it'd more usually be an annoyance and/or break cases that work today. If we decide that's a useful feature, I'd vote for leaving ECHO_HIDDEN alone and inventing a separate variable to enable it (HISTORY_HIDDEN, or some such?). regards, tom lane