Re: External psql editor - Mailing list pgsql-general

From Mladen Gogala
Subject Re: External psql editor
Date
Msg-id 8d23a17b-ba8d-1e69-7fc5-b551f9df5252@gmail.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>)
Re: External psql editor  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 4/29/22 13:35, Jan Wieck wrote:
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

Is there a way to define the name of the temporary file created by \e command? I'd like to name it "afiedt.buf", not for sentimental reasons. I already have a cron job that cleans afiedt.buf from my home directory every hour and having psql name temporary file like that would simplify the cleaning process. The name comes from another database with the same editor construct as \e. I am actually quite used to that.

Regards

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

pgsql-general by date:

Previous
From: Reid Thompson
Date:
Subject: Re: External psql editor
Next
From: Jan Wieck
Date:
Subject: Re: External psql editor