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 1nllPy-0007al-LR for pgsql-general@arkaria.postgresql.org; Tue, 03 May 2022 05:49:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nllPv-00059K-Sx for pgsql-general@arkaria.postgresql.org; Tue, 03 May 2022 05:49:47 +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 1nllPv-00059B-76 for pgsql-general@lists.postgresql.org; Tue, 03 May 2022 05:49:47 +0000 Received: from troubleshooters.com ([69.5.27.237]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nllPs-0006Gs-9p for pgsql-general@lists.postgresql.org; Tue, 03 May 2022 05:49:45 +0000 Received: (qmail 12239 invoked from network); 3 May 2022 05:49:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=PUuV6VdLbybELDJMfRT+9ywHR4Db3a4sTE1YolQXLHpw9WFA8mAlqhlkqNOGcnE0ZOuNbA0kOu42C0aiD1YY1mqJetfD+7Wiv5ykZ+Bh7r+oN0/KqmyHsYDn7DqQ/eXNcplCdnsR2JhzKZkx5jMjtg98Em8ZnH27/rRrQtlC+mI=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1651556982; bh=AQYrh9TxokLq2JhsyqjeTaoPzEc=; l=804; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=f6iXfAGWeqfI/Snts0tI4PQuGOXIsrWrfJ8VaEcNDewmM5+YyF+ZXUpe26nNuraA+ 8E0kXT/S9e0jIo/shQk/u1y1jfW178Ic25Qo52ka90ea06uaT9eTD/yKzO+wZyeN+U D6ndOKkXdX0ufaZq/Cct8fjUWbASTDpje7zK5q10= X-Originating-IP: [184.90.131.91] Date: Tue, 3 May 2022 01:49:41 -0400 From: Steve Litt To: pgsql-general@lists.postgresql.org Subject: Re: External psql editor Message-ID: <20220503014941.1b2f72d1@mydesk.domain.cxm> In-Reply-To: <1885615.1651526835@sss.pgh.pa.us> References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> <972d9c5f4293b858a5b505e6af8debd1ca16cf3c.camel@nc.rr.com> <478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com> <06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com> <1885615.1651526835@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane said on Mon, 02 May 2022 17:27:15 -0400 >Rich Shepard writes: >> On Mon, 2 May 2022, Reid Thompson wrote: >>> I believe that psql also uses readline, so my thought was that >>> maybe these instructions could enable you to map the 'move' >>> keystrokes that you're familiar with to be used while on the psql >>> command line. A very quick test seems to indicate that you can. > >> Nope. No difference. > >Perhaps your psql is built against libedit rather than readline. If this is indeed true, he can give his psql readline capabilities by installing rlwrap and performing the following command: rlwrap psql HTH, SteveT Steve Litt March 2022 featured book: Making Mental Models: Advanced Edition http://www.troubleshooters.com/mmm