projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1e192
)
psql's HISTSIZE from .psqlrc do not want to be set so I did it for psql
author
Bruce Momjian
<bruce@momjian.us>
Tue, 26 Aug 2003 18:35:31 +0000
(18:35 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 26 Aug 2003 18:35:31 +0000
(18:35 +0000)
that HISTSIZE might take effect from my .psqlrc
Andriy Tkachuk
src/bin/psql/input.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/input.c
b/src/bin/psql/input.c
index a3f5648bd3ac50d84ec7d36dad87c8d83f1cd1e9..7717710739dc14eb021b8b8af83cbf4791a383c8 100644
(file)
--- a/
src/bin/psql/input.c
+++ b/
src/bin/psql/input.c
@@
-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)