Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tiKAg-00EVnV-S3 for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 21:21:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tiKAe-00Elty-Qm for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 21:21:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tiKAe-00Eltq-GY for pgsql-general@lists.postgresql.org; Wed, 12 Feb 2025 21:21:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tiKAd-000Uvq-0B for pgsql-general@lists.postgresql.org; Wed, 12 Feb 2025 21:21:24 +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 51CLLLu33471304; Wed, 12 Feb 2025 16:21:21 -0500 From: Tom Lane To: Rob Sargent cc: pgsql-general@lists.postgresql.org Subject: Re: psql command line editing In-reply-to: <54e9e43e-935a-4871-89b1-291a7fb076a3@gmail.com> References: <61255ab-6249-1226-7db6-4ecc3e4c127b@appl-ecosys.com> <3370941.1739388555@sss.pgh.pa.us> <54e9e43e-935a-4871-89b1-291a7fb076a3@gmail.com> Comments: In-reply-to Rob Sargent message dated "Wed, 12 Feb 2025 14:17:26 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3471302.1739395281.1@sss.pgh.pa.us> Date: Wed, 12 Feb 2025 16:21:21 -0500 Message-ID: <3471303.1739395281@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rob Sargent writes: >> There's got to be something in your shell config which says "use emacs >> keys" instead of "use vi keys". > Or something in yours setting vi? I do have export EDITOR=emacs Possibly libreadline is reacting to that, but I've not checked into it. regards, tom lane