Skip to content

Commit 1840d9f

Browse files
committed
doc: Simplify example of HISTFILE for psql
e4c7619 has added a space to the example used for HISTFILE in the docs of psql before the variable DBNAME, as a workaround because variables were not parsed the same way back then. This behavior has changed in 9.2, causing the example in the psql docs to result in the same history file created with or without a space added before the DBNAME variable. Let's just remove this space in the example, to reduce any confusion, as the point of it is to prove that a per-database history file is easy to set up, and that's easier to read this way. Per discussion with Tom Lane. Reported-by: Ludovic Kuty Discussion: https://postgr.es/m/[email protected]
1 parent cbae877 commit 1840d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/ref/psql-ref.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,7 @@ bar
39153915
or <filename>%APPDATA%\postgresql\psql_history</filename> on Windows.
39163916
For example, putting:
39173917
<programlisting>
3918-
\set HISTFILE ~/.psql_history- :DBNAME
3918+
\set HISTFILE ~/.psql_history-:DBNAME
39193919
</programlisting>
39203920
in <filename>~/.psqlrc</filename> will cause
39213921
<application>psql</application> to maintain a separate history for

0 commit comments

Comments
 (0)