diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-13 22:18:22 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-13 22:18:22 +0000 |
commit | e97281c46cb14ecb91c473b6bd2b0435a50c0875 (patch) | |
tree | 82490966eb37a17515419cd61a42e7a58c34e201 /src/backend/access/gist/gistproc.c | |
parent | eb62398f391eedee7953becb410bf3ae86b9872b (diff) | |
download | postgresql-e97281c46cb14ecb91c473b6bd2b0435a50c0875.tar.gz postgresql-e97281c46cb14ecb91c473b6bd2b0435a50c0875.zip |
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.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions