diff options
author | Bruce Momjian | 2003-08-26 18:35:31 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-08-26 18:35:31 +0000 |
commit | 0b511f07e3db45059e1e5a3ac7acc74ca0c37028 (patch) | |
tree | 65bb3a18eea28e3a7ab173807f960e95f9e72edd /src | |
parent | 1e100176c47f0ba765f220490ac431dfc9fbd240 (diff) |
psql's HISTSIZE from .psqlrc do not want to be set so I did it for psql
that HISTSIZE might take effect from my .psqlrc
Andriy Tkachuk
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index f5b0808e1ea..ebcb69510be 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -3,7 +3,7 @@ * * 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 "input.h" @@ -187,7 +187,8 @@ initializeInput(int flags) initialize_readline(); useHistory = true; - SetVariable(pset.vars, "HISTSIZE", "500"); + if (GetVariable(pset.vars, "HISTSIZE") == NULL) + SetVariable(pset.vars, "HISTSIZE", "500"); using_history(); home = getenv("HOME"); if (home) |