Re: External psql editor

From: Jan Wieck <jan(at)wi3ck(dot)info>
To: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: External psql editor
Date: 2022-04-29 19:58:37
Message-ID: 2692cb5e-3832-89cf-3401-8249778f3185@wi3ck.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/29/22 15:50, Mladen Gogala wrote:
> 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.

I honestly don't know. However, psql is reading back that temporary file
and removes it when you exit the external editor, so there is no use for
that cron job here. This is similar to the behavior of other systems
like "virsh edit DOM" for example.

Regards, Jan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2022-04-29 20:17:40 Re: External psql editor
Previous Message Mladen Gogala 2022-04-29 19:50:54 Re: External psql editor