diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index e7fcc734b53..d29dfa2b87a 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -616,7 +616,8 @@ EOF determined at compile time. Since the database server uses the same default, you will not have to specify the port in most cases. The default user name is your - Unix user name, as is the default database name. Note that you cannot + operating-system user name, as is the default database name. + Note that you cannot just connect to any database under any user name. Your database administrator should have informed you about your access rights. @@ -1659,14 +1660,14 @@ Tue Oct 26 21:40:57 CEST 1999 - \g [ { filename | |command } ] - + \g [ filename ] + \g [ |command ] - Sends the current query input buffer to the server and + Sends the current query input buffer to the server, and optionally stores the query's output in filename or pipes the output - into a separate Unix shell executing command. The file or command is written to only if the query successfully returns zero or more tuples, not if the query fails or is a non-data-returning SQL command. @@ -1680,7 +1681,7 @@ Tue Oct 26 21:40:57 CEST 1999 - \gset [ prefix ] + \gset [ prefix ] @@ -1744,7 +1745,7 @@ hello 10 - \H + \H or \html Turns on HTML query output format. If the @@ -1758,7 +1759,7 @@ hello 10 - \i filename + \i or \include filename Reads input from the file - \ir filename + \ir or \include_relative filename The \ir command is similar to \i, but resolves @@ -1893,15 +1894,15 @@ lo_import 152801 - \o [ {filename | |command} ] - + \o or \out [ filename ] + \o or \out [ |command ] - Saves future query results to the file filename or pipes future results - into a separate Unix shell to execute command. If no arguments are - specified, the query output will be reset to the standard output. + Arranges to save future query results to the file filename or pipe future results + to the shell command command. If no argument is + specified, the query output is reset to the standard output. Query results includes all tables, command @@ -1922,7 +1923,7 @@ lo_import 152801 - \p + \p or \print Print the current query buffer to the standard output. @@ -2381,7 +2382,7 @@ lo_import 152801 - \r + \r or \reset Resets (clears) the query buffer. @@ -2541,12 +2542,12 @@ testdb=> \setenv LESS -imx4F - \w filename - \w |command + \w or \write filename + \w or \write |command Outputs the current query buffer to the file filename or pipes it to the Unix + class="parameter">filename or pipes it to the shell command command. @@ -2599,7 +2600,7 @@ testdb=> \setenv LESS -imx4F \! [ command ] - Escapes to a separate Unix shell or executes the Unix command + Escapes to a separate shell or executes the shell command command. The arguments are not further interpreted; the shell will see them as-is. In particular, the variable substitution rules and