Skip to content

Commit 1a61896

Browse files
committed
Use saveHistory so we get a nice error message on failure.
Andreas Seltenreich
1 parent ea88824 commit 1a61896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/input.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.44 2005/06/10 15:34:26 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.45 2005/06/10 15:40:41 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -245,7 +245,7 @@ finishInput(int exitstatus, void *arg)
245245
if (hist_size >= 0)
246246
stifle_history(hist_size);
247247

248-
write_history(psql_history);
248+
saveHistory(psql_history);
249249
free(psql_history);
250250
psql_history = NULL;
251251
}

0 commit comments

Comments
 (0)