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 1nkXw1-000725-LW for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 21:13:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkXvz-0008KK-U2 for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 21:13:51 +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 1nkXvz-0008Ju-JW for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 21:13:51 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkXvx-00007I-Oo for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 21:13:51 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id C94B32A0108 for ; Fri, 29 Apr 2022 14:13:47 -0700 (PDT) Date: Fri, 29 Apr 2022 14:13:47 -0700 (PDT) From: Rich Shepard To: "pgsql-generallists.postgresql.org" Subject: Re: External psql editor In-Reply-To: Message-ID: <4bbf1b8-1510-d8e-c980-194d4d5e30@appl-ecosys.com> References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> <3d1ce18c-8ba3-7ecd-4f9d-98ba959ea6ac@wi3ck.info> 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, David G. Johnston wrote: > You type "insert", realize you want an editor for this, hit enter > (multi-line mode is psql), type \e, hit enter again, your editor appears > with "insert" already in place from the query buffer. Upon returning you > are given a new buffer with the contents of whatever you typed into the > editor pasted in. Thank you, David. Rich