Re: A tiny improvement of psql

Поиск
Список
Период
Сортировка
Искать
От
Jelte Fennema-Nio
Тема
Re: A tiny improvement of psql
Дата
Msg-id
CAGECzQTeDak7Q1M1Eb_wr9M=BJuRove7+Gcym861Zgc8RxJKQQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
A tiny improvement of psql Kevin Wang <kevinpgcloud@gmail.com>
Re: A tiny improvement of psql Tom Lane <tgl@sss.pgh.pa.us>
Re: A tiny improvement of psql Vik Fearing <vik@postgresfriends.org>
Re: A tiny improvement of psql Jelte Fennema-Nio <postgres@jeltef.nl>
Re: A tiny improvement of psql Kirk Wolak <wolakk@gmail.com>
Re: A tiny improvement of psql Deepak M <mahtodeepak05@gmail.com>
On Tue, 26 Dec 2023 at 22:45, Vik Fearing  wrote:
> It is kind of something we control.  Per the psql docs, setting
>
>      HISTCONTROL=ignoredups
>
> will do the trick.

Yeah, the easiest "fix" (that I know of) for a user is to set
HISTCONTROL in ~/.psqlrc to ignoredups using:

\set HISTCONTROL ignoredups

But honestly, I think that should probably be made the default. I
can't really think of a reason who would actually want the current
default of "none". And while we're at it maybe there are some other
defaults in psql that are worth changing. The main ones from my psqlrc
that seem like good defaults for pretty much everyone:

\x auto
\pset linestyle unicode

And maybe fixing the major pitfall I always run into with psql: Having
ON_ERROR_STOP default to on when a script is passed in using -f/--file


В списке pgsql-hackers по дате отправления
От: Tomas Vondra
Дата:
От: Alexander Cheshev
Дата:
Сообщение: Multidimensional Histograms
FAQ