-
- Downloads
Write psql's ~/.psql_history file using history_truncate_file() and
append_history(), if libreadline is new enough to have those functions (they seem to be present at least since 4.2; but libedit may not have them). This gives significantly saner behavior when two or more sessions overlap in their use of the history file; although having two sessions exit at just the same time is still perilous to your history. The behavior of \s remains unchanged, ie, overwrite whatever was there. Per bug #5052 from Marek Wójtowicz.
Showing
- configure 2 additions, 1 deletionconfigure
- configure.in 2 additions, 2 deletionsconfigure.in
- src/bin/psql/command.c 2 additions, 2 deletionssrc/bin/psql/command.c
- src/bin/psql/input.c 74 additions, 18 deletionssrc/bin/psql/input.c
- src/bin/psql/input.h 2 additions, 2 deletionssrc/bin/psql/input.h
- src/include/pg_config.h.in 6 additions, 3 deletionssrc/include/pg_config.h.in
- src/include/pg_config.h.win32 0 additions, 3 deletionssrc/include/pg_config.h.win32
Loading
Please register or sign in to comment