Re: External psql editor

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: External psql editor
Date: 2022-04-29 17:13:09
Message-ID: 89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2022-04-29 17:18:20 Re: External psql editor
Previous Message Francisco Olarte 2022-04-29 16:53:43 Re: External psql editor