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