Re: Multiple psql history files
От | Corey Huinker |
---|---|
Тема | Re: Multiple psql history files |
Дата | |
Msg-id | CADkLM=f1pkL4YXiM8GR+23ohtktuwaiL0gQJK3WBxTmV6+jw8w@mail.gmail.com обсуждение исходный текст |
Ответ на | Multiple psql history files (Jonathan Jacobson <jonjac@gmail.com>) |
Список | pgsql-hackers |
On Tue, Oct 18, 2016 at 12:26 PM, Jonathan Jacobson <jonjac@gmail.com> wrote:
JonathanI will be happy to make this my first contribution to PostgreSQL's code.To solve this, psql could keep a separate command history file for each connection.The .psql_history file is naturally used by different DB connections (distinguished by a different combination of host + port + database + user).At least in my multi-database working environment, this leads sometimes to frustration because there are commands that cannot or should not be used by different connections.What do you say?Regards,
\set HISTFILE ~/.psql_history- :DBNAME
There's also :PORT and a few other vars.
В списке pgsql-hackers по дате отправления: