aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-04-15 16:45:34 +0900
committerMichael Paquier <michael@paquier.xyz>2021-04-15 16:45:34 +0900
commit1840d9f4c89998872a3b46473f8e9e5b6ff3c144 (patch)
tree937412be8119cd7f7921d5d1e798befd7aed18c2 /doc/src
parentcbae8774eb5c2f5552323ee18ca5286f9c8e5d06 (diff)
downloadpostgresql-1840d9f4c89998872a3b46473f8e9e5b6ff3c144.tar.gz
postgresql-1840d9f4c89998872a3b46473f8e9e5b6ff3c144.zip
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/161830067409.691.16198363670687811485@wrigleys.postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index a3cfd3b5575..67e527124d9 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -3915,7 +3915,7 @@ bar
or <filename>%APPDATA%\postgresql\psql_history</filename> on Windows.
For example, putting:
<programlisting>
-\set HISTFILE ~/.psql_history- :DBNAME
+\set HISTFILE ~/.psql_history-:DBNAME
</programlisting>
in <filename>~/.psqlrc</filename> will cause
<application>psql</application> to maintain a separate history for