Re: External psql editor

From: Jan Wieck <jan(at)wi3ck(dot)info>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: External psql editor
Date: 2022-04-29 17:35:26
Message-ID: ce8ee8c0-cb6b-c114-47be-275730af91de@wi3ck.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/29/22 13:13, Rich Shepard wrote:
>> 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?

Not that I know of. \e starts the external editor and you have to save
and exit that editor to get back to psql in order to execute it. IMHO
the whole construct has very limited usability.

Regards, Jan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kris Deugau 2022-04-29 17:43:18 Re: Mail list manager request
Previous Message Zheng Li 2022-04-29 17:34:32 Re: Support logical replication of DDLs