Re: External psql editor - Mailing list pgsql-general

From Jan Wieck
Subject Re: External psql editor
Date
Msg-id 5144d65d-4af8-d2fd-f0f7-1d5877b068dc@wi3ck.info
Whole thread Raw
In response to Re: External psql editor  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: External psql editor  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
On 4/29/22 16:17, Rich Shepard wrote:
> On Fri, 29 Apr 2022, Jan Wieck wrote:
> 
>> Did you hit Enter after \e ?
> 
> Jan,
> 
> Yes. For example, I put a previous command at the prompt to be modified. It
> began with 'insert ...' so I added an initial \e to the command. psql told
> me that \einsert is not a valid command after I pressed the [Enter] key.

It is the other way around, like in


postgres-# select now()\e


That puts "select now()" into vi(1) for me.


Regards, Jan



pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: External psql editor
Next
From: "Peter J. Holzer"
Date:
Subject: Re: Replication with Patroni not working after killing secondary and starting again