Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e10017 commit 0b511f0Copy full SHA for 0b511f0
src/bin/psql/input.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.28 2003/08/04 23:59:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.29 2003/08/26 18:35:31 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "input.h"
@@ -187,7 +187,8 @@ initializeInput(int flags)
187
initialize_readline();
188
189
useHistory = true;
190
- SetVariable(pset.vars, "HISTSIZE", "500");
+ if (GetVariable(pset.vars, "HISTSIZE") == NULL)
191
+ SetVariable(pset.vars, "HISTSIZE", "500");
192
using_history();
193
home = getenv("HOME");
194
if (home)
0 commit comments