1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.20 2000/01/14 22:18:01 petere Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.21 2000/01/18 23:30:19 petere Exp $
3
3
Postgres documentation
4
4
-->
5
5
@@ -851,6 +851,16 @@ lo_import 152801
851
851
</listitem>
852
852
</varlistentry>
853
853
854
+ <varlistentry>
855
+ <term><literal>recordsep</literal></term>
856
+ <listitem>
857
+ <para>
858
+ Specifies the record (line) separator to use in unaligned output mode. The default
859
+ is a newline character.
860
+ </para>
861
+ </listitem>
862
+ </varlistentry>
863
+
854
864
<varlistentry>
855
865
<term><literal>tuples_only</literal> (or <literal>t</literal>)</term>
856
866
<listitem>
@@ -1900,12 +1910,14 @@ testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinp
1900
1910
<variablelist>
1901
1911
<varlistentry>
1902
1912
<term><literal>%M</literal></term>
1903
- <listitem><para>The hostname of the database server (or <quote>.</quote> if Unix domain socket).</para></listitem>
1913
+ <listitem><para>The hostname of the database server (or <quote>.</quote>
1914
+ if Unix domain socket).</para></listitem>
1904
1915
</varlistentry>
1905
1916
1906
1917
<varlistentry>
1907
1918
<term><literal>%m</literal></term>
1908
- <listitem><para>The hostname of the database server truncated after the first dot.</para></listitem>
1919
+ <listitem><para>The hostname of the database server truncated after the
1920
+ first dot.</para></listitem>
1909
1921
</varlistentry>
1910
1922
1911
1923
<varlistentry>
@@ -1915,7 +1927,8 @@ testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinp
1915
1927
1916
1928
<varlistentry>
1917
1929
<term><literal>%n</literal></term>
1918
- <listitem><para>The username you are connected as (not your local system user name).</para></listitem>
1930
+ <listitem><para>The username you are connected as (not your local system
1931
+ user name).</para></listitem>
1919
1932
</varlistentry>
1920
1933
1921
1934
<varlistentry>
@@ -1925,37 +1938,39 @@ testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinp
1925
1938
1926
1939
<varlistentry>
1927
1940
<term><literal>%~</literal></term>
1928
- <listitem><para>Like <literal>%/</literal>, but the output is <quote>~</quote> (tilde) if the database
1929
- is your default database.</para></listitem>
1941
+ <listitem><para>Like <literal>%/</literal>, but the output is <quote>~</quote>
1942
+ (tilde) if the database is your default database.</para></listitem>
1930
1943
</varlistentry>
1931
1944
1932
1945
<varlistentry>
1933
1946
<term><literal>%#</literal></term>
1934
- <listitem><para>If the username is <literal>postgres</literal>, a <quote>#</quote>, otherwise a <quote>></quote>.</para></listitem>
1947
+ <listitem><para>If the username is <literal>postgres</literal>, a
1948
+ <quote>#</quote>, otherwise a <quote>></quote>.</para></listitem>
1935
1949
</varlistentry>
1936
1950
1937
1951
<varlistentry>
1938
1952
<term><literal>%R</literal></term>
1939
1953
<listitem><para>
1940
- In prompt 1 normally <quote>=</quote>, but <quote>^</quote> if in single-line mode, and
1941
- <quote>!</quote> if the session is disconnected from the database (which can only
1942
- happen if <command>\connect</command> fails).
1943
- In prompt 2 the sequence is replaced by <quote>-</quote>, <quote>*</quote>, a single quote,
1944
- or a double quote, depending on whether <application>psql</application> expects more input
1945
- because the query wasn't terminated yet, because you are inside a <literal>/* ... */</literal>
1946
- comment, or because you are inside a quote.
1947
- In prompt 3 the sequence doesn't resolve to anything.</para>
1954
+ In prompt 1 normally <quote>=</quote>, but <quote>^</quote> if in single-line
1955
+ mode, and <quote>!</quote> if the session is disconnected from the database
1956
+ (which can happen if <command>\connect</command> fails). In prompt 2 the
1957
+ sequence is replaced by <quote>-</quote>, <quote>*</quote>, a single quote,
1958
+ or a double quote, depending on whether <application>psql</application>
1959
+ expects more input because the query wasn't terminated yet, because you are
1960
+ inside a <literal>/* ... */</literal> comment, or because you are inside
1961
+ a quote. In prompt 3 the sequence doesn't resolve to anything.</para>
1948
1962
</listitem>
1949
1963
</varlistentry>
1950
1964
1951
1965
<varlistentry>
1952
1966
<term><literal>%</literal><replaceable class="parameter">digits</replaceable></term>
1953
1967
<listitem><para>
1954
- If <replaceable class="parameter">digits</replaceable> starts with <literal>0x</literal>
1955
- the rest of the characters are interpreted at a hexadecimal digit and the
1956
- character with the corresponding code is subsituted. If the first digit is <literal>0</literal>
1957
- the characters are interpreted as on octal number and the corresponding character
1958
- is substituted. Otherwise a decimal number is assumed.</para>
1968
+ If <replaceable class="parameter">digits</replaceable> starts with
1969
+ <literal>0x</literal> the rest of the characters are interpreted at a
1970
+ hexadecimal digit and the character with the corresponding code is
1971
+ subsituted. If the first digit is <literal>0</literal> the characters are
1972
+ interpreted as on octal number and the corresponding character is
1973
+ substituted. Otherwise a decimal number is assumed.</para>
1959
1974
</listitem>
1960
1975
</varlistentry>
1961
1976
0 commit comments