Re: External psql editor - Mailing list pgsql-general

From Rich Shepard
Subject Re: External psql editor
Date
Msg-id 89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com
Whole thread Raw
In response to Re: External psql editor  (Jan Wieck <jan@wi3ck.info>)
Responses Re: External psql editor  (Jan Wieck <jan@wi3ck.info>)
List pgsql-general
On Fri, 29 Apr 2022, Jan Wieck wrote:

> What you are missing is that even though the PSQL_EDITOR env variable is
> set, psql itself doesn't emulate that editor's behavior natively. You need
> to actually launch the editor (possibly while having a partial query in
> the buffer) with the \e command.

Jan,

Ah! That wasn't mentioned in the thread I read.

> While in psql, type \e and Enter. You will have the current query buffer
> in the editor. You can do this at the end of a partial (not yet semicolon
> terminated) query.

Can I set it before entering any command or better yet, when I invoke psql?

Thanks very much,

Rich



pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: External psql editor
Next
From: Rich Shepard
Date:
Subject: Re: External psql editor