*** ./doc/src/sgml/ref/psql-ref.sgml.orig Mon Aug 21 19:20:36 2006
--- ./doc/src/sgml/ref/psql-ref.sgml Mon Aug 21 19:25:04 2006
***************
*** 2041,2046 ****
--- 2041,2055 ----
psql to maintain a separate history for
each database.
+
+ The special file name none will prevent
+ the use of the history file. That is, putting
+
+ \set HISTFILE none
+
+ in ~/.psqlrc will cause
+ psql not to use a history file.
+
This feature was shamelessly plagiarized from
*** ./src/bin/psql/input.c.orig Mon Aug 21 19:20:36 2006
--- ./src/bin/psql/input.c Mon Aug 21 19:25:04 2006
***************
*** 308,315 ****
}
else
{
! psql_history = pg_strdup(GetVariable(pset.vars, "HISTFILE"));
! expand_tilde(&psql_history);
}
if (psql_history)
--- 308,320 ----
}
else
{
! if (strcmp(GetVariable(pset.vars, "HISTFILE"), "none") == 0) {
! /* user doesnt want a HISTFILE */
! psql_history = NULL;
! } else {
! psql_history = pg_strdup(GetVariable(pset.vars, "HISTFILE"));
! expand_tilde(&psql_history);
! }
}
if (psql_history)