Re: [HACKERS] Multiple psql history files

2016-10-18 Thread David G. Johnston
On Tue, Oct 18, 2016 at 10:21 AM, Tom Lane wrote: > "David G. Johnston" writes: > > On Tue, Oct 18, 2016 at 9:45 AM, Tom Lane wrote: > >> One interesting point, if you wish to consider history as being > >> connection-specific, is what happens during a \c command. Right > >> now the answer is

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread Tom Lane
"David G. Johnston" writes: > On Tue, Oct 18, 2016 at 9:45 AM, Tom Lane wrote: >> One interesting point, if you wish to consider history as being >> connection-specific, is what happens during a \c command. Right >> now the answer is "nothing" but you might wish it were different. > ​Just to cl

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread David G. Johnston
On Tue, Oct 18, 2016 at 9:45 AM, Tom Lane wrote: > Jonathan Jacobson writes: > > 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 lea

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread Tom Lane
Jonathan Jacobson writes: > 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

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread David G. Johnston
On Tue, Oct 18, 2016 at 9:26 AM, Jonathan Jacobson wrote: > 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 > frustratio

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread Julien Rouhaud
On 18/10/2016 18:26, Jonathan Jacobson wrote: > 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 ther

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread David G. Johnston
On Tue, Oct 18, 2016 at 9:26 AM, Jonathan Jacobson wrote: > 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 > frustratio

Re: [HACKERS] Multiple psql history files

2016-10-18 Thread Corey Huinker
On Tue, Oct 18, 2016 at 12:26 PM, Jonathan Jacobson wrote: > 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 > frustrati

[HACKERS] Multiple psql history files

2016-10-18 Thread Jonathan Jacobson
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 di