diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-06-10 15:40:41 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-06-10 15:40:41 +0000 |
commit | 1a61896189c54dbbb63973d45f59c73fd2f4b44c (patch) | |
tree | 6cbed9451ce36b71fda799cbf1a0e430e421ec37 /src | |
parent | ea88824a3e2d2a610ceff43740391b2269939f77 (diff) | |
download | postgresql-1a61896189c54dbbb63973d45f59c73fd2f4b44c.tar.gz postgresql-1a61896189c54dbbb63973d45f59c73fd2f4b44c.zip |
Use saveHistory so we get a nice error message on failure.
Andreas Seltenreich
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index ee0180376b1..2da977612cd 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.44 2005/06/10 15:34:26 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.45 2005/06/10 15:40:41 momjian Exp $ */ #include "postgres_fe.h" @@ -245,7 +245,7 @@ finishInput(int exitstatus, void *arg) if (hist_size >= 0) stifle_history(hist_size); - write_history(psql_history); + saveHistory(psql_history); free(psql_history); psql_history = NULL; } |