|
|
@ -3,7 +3,7 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
* Copyright (c) 2000-2003, PostgreSQL Global Development Group |
|
|
|
* Copyright (c) 2000-2003, PostgreSQL Global Development Group |
|
|
|
* |
|
|
|
* |
|
|
|
* $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 $ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
#include "postgres_fe.h" |
|
|
|
#include "postgres_fe.h" |
|
|
|
#include "input.h" |
|
|
|
#include "input.h" |
|
|
@ -187,6 +187,7 @@ initializeInput(int flags) |
|
|
|
initialize_readline(); |
|
|
|
initialize_readline(); |
|
|
|
|
|
|
|
|
|
|
|
useHistory = true; |
|
|
|
useHistory = true; |
|
|
|
|
|
|
|
if (GetVariable(pset.vars, "HISTSIZE") == NULL) |
|
|
|
SetVariable(pset.vars, "HISTSIZE", "500"); |
|
|
|
SetVariable(pset.vars, "HISTSIZE", "500"); |
|
|
|
using_history(); |
|
|
|
using_history(); |
|
|
|
home = getenv("HOME"); |
|
|
|
home = getenv("HOME"); |
|
|
|