Re: Confusing behavior of psql's \e

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Confusing behavior of psql's \e
Дата
Msg-id ee7a38c7f05f222eb465763def0bd4ed8c904b77.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Confusing behavior of psql's \e  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sat, 2021-04-03 at 17:43 -0400, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > Attached is version 6.
> 
> Pushed with some mostly-cosmetic fiddling.
> 
> One thing I changed that wasn't cosmetic is that as you had it,
> the behavior of "\e file" varied depending on whether the query
> buffer had been empty, which surely seems like a bad idea.
> I made it do discard_on_quit always in that case.  I think there
> might be a case for discard_on_quit = false always, ie maybe
> the user wanted to load the file into the query buffer as-is.
> But it seems like a pretty weak case --- you'd be more likely
> to just use \i for that situation.

Thanks for that!

Yours,
Laurenz Albe




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Chen
Дата:
Сообщение: Re: Key management with tests
Следующее
От: Amit Langote
Дата:
Сообщение: Re: Allow batched insert during cross-partition updates