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 1nkV4G-0001wu-2y for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 18:10:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkV4F-0008OF-1F for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 18:10:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkV4E-0008Nt-N9 for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 18:10:10 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkV4C-0002Db-KV for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 18:10:09 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 6754C2A0108 for ; Fri, 29 Apr 2022 11:10:07 -0700 (PDT) Date: Fri, 29 Apr 2022 11:10:07 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: External psql editor In-Reply-To: Message-ID: References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 29 Apr 2022, Jan Wieck wrote: > Not that I know of. \e starts the external editor and you have to save and > exit that editor to get back to psql in order to execute it. IMHO the > whole construct has very limited usability. Jan, I tried, unsuccessily, to use \e. Entering it while a command is displayed does nothing. So I'm doing something wrong. I'll continue using character-by-character movement. Thanks again, Rich