@@ -989,8 +989,10 @@ testdb=>
989
989
command. All options other than the data source/destination are
990
990
as specified for <xref linkend="sql-copy">.
991
991
Because of this, special parsing rules apply to the <command>\copy</>
992
- command. In particular, <application>psql</>'s variable substitution
993
- rules and backslash escapes do not apply.
992
+ meta-command. Unlike most other meta-commands, the entire remainder
993
+ of the line is always taken to be the arguments of <command>\copy</>,
994
+ and neither variable interpolation nor backquote expansion are
995
+ performed in the arguments.
994
996
</para>
995
997
996
998
<tip>
@@ -1820,6 +1822,13 @@ Tue Oct 26 21:40:57 CEST 1999
1820
1822
line of the file.)
1821
1823
</para>
1822
1824
1825
+ <para>
1826
+ Unlike most other meta-commands, the entire remainder of the line is
1827
+ always taken to be the argument(s) of <command>\ef</>, and neither
1828
+ variable interpolation nor backquote expansion are performed in the
1829
+ arguments.
1830
+ </para>
1831
+
1823
1832
<tip>
1824
1833
<para>
1825
1834
See under <xref linkend="app-psql-environment"
@@ -1879,6 +1888,13 @@ Tue Oct 26 21:40:57 CEST 1999
1879
1888
If a line number is specified, <application>psql</application> will
1880
1889
position the cursor on the specified line of the view definition.
1881
1890
</para>
1891
+
1892
+ <para>
1893
+ Unlike most other meta-commands, the entire remainder of the line is
1894
+ always taken to be the argument(s) of <command>\ev</>, and neither
1895
+ variable interpolation nor backquote expansion are performed in the
1896
+ arguments.
1897
+ </para>
1882
1898
</listitem>
1883
1899
</varlistentry>
1884
1900
@@ -1916,6 +1932,14 @@ Tue Oct 26 21:40:57 CEST 1999
1916
1932
A <literal>\g</literal> with argument is a <quote>one-shot</quote>
1917
1933
alternative to the <command>\o</command> command.
1918
1934
</para>
1935
+ <para>
1936
+ If the argument begins with <literal>|</>, then the entire remainder
1937
+ of the line is taken to be
1938
+ the <replaceable class="parameter">command</replaceable> to execute,
1939
+ and neither variable interpolation nor backquote expansion are
1940
+ performed in it. The rest of the line is simply passed literally to
1941
+ the shell.
1942
+ </para>
1919
1943
</listitem>
1920
1944
</varlistentry>
1921
1945
@@ -2035,6 +2059,13 @@ hello 10
2035
2059
<acronym>SQL</acronym> commands is shown.
2036
2060
</para>
2037
2061
2062
+ <para>
2063
+ Unlike most other meta-commands, the entire remainder of the line is
2064
+ always taken to be the argument(s) of <command>\help</>, and neither
2065
+ variable interpolation nor backquote expansion are performed in the
2066
+ arguments.
2067
+ </para>
2068
+
2038
2069
<note>
2039
2070
<para>
2040
2071
To simplify typing, commands that consists of several words do
@@ -2303,10 +2334,20 @@ lo_import 152801
2303
2334
specified, the query output is reset to the standard output.
2304
2335
</para>
2305
2336
2306
- <para><quote>Query results</quote> includes all tables, command
2337
+ <para>
2338
+ If the argument begins with <literal>|</>, then the entire remainder
2339
+ of the line is taken to be
2340
+ the <replaceable class="parameter">command</replaceable> to execute,
2341
+ and neither variable interpolation nor backquote expansion are
2342
+ performed in it. The rest of the line is simply passed literally to
2343
+ the shell.
2344
+ </para>
2345
+
2346
+ <para>
2347
+ <quote>Query results</quote> includes all tables, command
2307
2348
responses, and notices obtained from the database server, as
2308
2349
well as output of various backslash commands that query the
2309
- database (such as <command>\d</command>), but not error
2350
+ database (such as <command>\d</command>); but not error
2310
2351
messages.
2311
2352
</para>
2312
2353
@@ -2907,6 +2948,13 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2907
2948
output lines are numbered, with the first line of the function body
2908
2949
being line 1.
2909
2950
</para>
2951
+
2952
+ <para>
2953
+ Unlike most other meta-commands, the entire remainder of the line is
2954
+ always taken to be the argument(s) of <command>\sf</>, and neither
2955
+ variable interpolation nor backquote expansion are performed in the
2956
+ arguments.
2957
+ </para>
2910
2958
</listitem>
2911
2959
</varlistentry>
2912
2960
@@ -2926,6 +2974,13 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2926
2974
If <literal>+</literal> is appended to the command name, then the
2927
2975
output lines are numbered from 1.
2928
2976
</para>
2977
+
2978
+ <para>
2979
+ Unlike most other meta-commands, the entire remainder of the line is
2980
+ always taken to be the argument(s) of <command>\sv</>, and neither
2981
+ variable interpolation nor backquote expansion are performed in the
2982
+ arguments.
2983
+ </para>
2929
2984
</listitem>
2930
2985
</varlistentry>
2931
2986
@@ -3001,6 +3056,15 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
3001
3056
If the current query buffer is empty, the most recently executed query
3002
3057
is written instead.
3003
3058
</para>
3059
+
3060
+ <para>
3061
+ If the argument begins with <literal>|</>, then the entire remainder
3062
+ of the line is taken to be
3063
+ the <replaceable class="parameter">command</replaceable> to execute,
3064
+ and neither variable interpolation nor backquote expansion are
3065
+ performed in it. The rest of the line is simply passed literally to
3066
+ the shell.
3067
+ </para>
3004
3068
</listitem>
3005
3069
</varlistentry>
3006
3070
@@ -3057,11 +3121,17 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
3057
3121
<term><literal>\! [ <replaceable class="parameter">command</replaceable> ]</literal></term>
3058
3122
<listitem>
3059
3123
<para>
3060
- Escapes to a separate shell or executes the shell command
3061
- <replaceable class="parameter">command</replaceable>. The
3062
- arguments are not further interpreted; the shell will see them
3063
- as-is. In particular, the variable substitution rules and
3064
- backslash escapes do not apply.
3124
+ With no argument, escapes to a sub-shell; <application>psql</>
3125
+ resumes when the sub-shell exits. With an argument, executes the
3126
+ shell command <replaceable class="parameter">command</replaceable>.
3127
+ </para>
3128
+
3129
+ <para>
3130
+ Unlike most other meta-commands, the entire remainder of the line is
3131
+ always taken to be the argument(s) of <command>\!</>, and neither
3132
+ variable interpolation nor backquote expansion are performed in the
3133
+ arguments. The rest of the line is simply passed literally to the
3134
+ shell.
3065
3135
</para>
3066
3136
</listitem>
3067
3137
</varlistentry>
0 commit comments