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 1tiIxv-00EDju-Fj for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 20:04:11 +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 1tiIxt-00Da7S-B8 for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 20:04:10 +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 1tiIxs-00Da7K-Ti for pgsql-general@lists.postgresql.org; Wed, 12 Feb 2025 20:04:09 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tiIxr-000UVU-0u for pgsql-general@postgresql.org; Wed, 12 Feb 2025 20:04:09 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5fcad6dbce0so90816eaf.0 for ; Wed, 12 Feb 2025 12:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739390644; x=1739995444; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=SJrD7v1FvMgHkyh/FqtniB3vhP0ne2Kbrb5pX3NGmm8=; b=GkK16KA0YB3m4unmE8ezjsvWEj/BNjLmR/ru8faN1uW8ewS5XLUBwViAfF2blpHNo5 BO5p5WHureJPgGlP51JaLlRyksrtGcMrGTZyagcBqRuMFuqty3thphV3HDWfzj/S10GO zLN4zmOVSihc+JNi5S+8LJOU51JpNoP4uNrRZGncGFO4zWKj5O+WRwDIaNfYdxs0cV5R 6aUPoRqXw9zpO4A0AseEEF1MR8BGFb1nm6g4Q73JuucREhava3Mko/6TSrxJiQxQlHGu aOw8jvoBaQh5QjGO5qDAxGuIpLVDjpYo0tQ8drYhGePB6fOH9CsK73vz5YRLQbzRxJBI u+aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739390644; x=1739995444; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SJrD7v1FvMgHkyh/FqtniB3vhP0ne2Kbrb5pX3NGmm8=; b=LeGDxz4y3Ys7mi7Fw5UR0hPKEM0ZGwkKnr47edhomIM9EXVSHqKzPdc6AVq+avQYxD 6i6RhozHry+pqvpUTf46Kqxjp7AUoc3lzRSEEAAf9cQ+CvZCQPUnQaSjuBl7nqZcNIIW 2u680JYhJwBvD/FINIKAAlIwBvQUgqF1AYtub1Tm85os6ydpsHP8fFnmHF5ppgd82moZ Sb7xJ2q9Ngj8qTBM/UdfzzvZZ0pWxub0udewPBHtsvEuYnJt/oufDpEjp4iiecKSL0WE /8itMW0SujQTgpFKFLWbYwQTvmkxhzTNjKeL8kKuFXCUGwSE0xzPepQV1HiCbZhkLTlJ mHaw== X-Gm-Message-State: AOJu0YzN9zzmX1ZjzNGah/SqHvjR9q6tzoSFscvxeZR+cl0ZOyH2q7vU XphMW44bH3fs1DLiSzAYb+mtDnO/SseSMdnCgsfclTmYjhTyC6lahOsq2cvos+LfV4FafoZ7g5H N46aB+sYqykHCgv/lF3RFgSm+97SweA== X-Gm-Gg: ASbGnctfZZflhgyq/xoCZFAJ/wvRqt2ExxUwqGgg0Awqt5x1pzCQh/fZ/n7OH57UBFu 90rBcqtS+OBMNiSdJ1ZDwamvPPclukkWCPLPJqSf0TnS04i7AFZZWKv6Tb0AmFndpADneek+wmA == X-Google-Smtp-Source: AGHT+IGr6QqPL+s5OK+8uxjLTY8kXV0+QgmVVMaYTIaJ4kb2b+uevfPkY9fmfB9E+JbPh1UaICwxuOIdw+0q96smX6w= X-Received: by 2002:a05:6870:c0d3:b0:254:bd24:de83 with SMTP id 586e51a60fabf-2b8f8c9a158mr351451fac.12.1739390644537; Wed, 12 Feb 2025 12:04:04 -0800 (PST) MIME-Version: 1.0 References: <61255ab-6249-1226-7db6-4ecc3e4c127b@appl-ecosys.com> <3370941.1739388555@sss.pgh.pa.us> In-Reply-To: <3370941.1739388555@sss.pgh.pa.us> From: Ron Johnson Date: Wed, 12 Feb 2025 15:03:53 -0500 X-Gm-Features: AWEUYZmlkMV4H2uxQ-hEOdM8ag888jdiif2fqXF5iZVZrYCIti2-mxuSI1z9gHk Message-ID: Subject: Re: psql command line editing To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000007e4f3a062df77160" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007e4f3a062df77160 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 12, 2025 at 2:29=E2=80=AFPM Tom Lane wrote: > Ron Johnson writes: > > On Wed, Feb 12, 2025 at 1:50=E2=80=AFPM Rich Shepard > > wrote: > >> My web searches suggest that using the psql command line I'm limited t= o > >> moving the cursor one character at a time. Is there a way to use a sma= ll > >> editor, e.g., joe on linux, to move by words or to the begining and en= d > of > >> the line? > > > The PGDG prebuilt packages are built with libreadline. Thus, if that's > how > > you installed psql, Home, End, Ctrl-Left, Ctrl-Right and Ctrl-w should > work. > > On my machine, Ctrl-Left/Right don't seem to do anything, but > the usual Emacs combinations Ctrl-A, Ctrl-E, Escape-B, Escape-F > and so on work in psql. I don't believe I did anything special > to configure that. Check your local readline documentation. > > As Adrian notes, there's also \e, which is good for entering > or editing multi-line queries. > There's got to be something in your shell config which says "use emacs keys" instead of "use vi keys". --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000007e4f3a062df77160 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Feb 12, 2025 at 2:29=E2=80=AFPM T= om Lane <tgl@sss.pgh.pa.us> = wrote:

--
Death to <Redacted>, and butter sauc= e.
Don't boil me, I'm still alive.
<Redacted>= ; lobster!
--0000000000007e4f3a062df77160--