|
|
@ -1,5 +1,5 @@ |
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.34 2000/07/21 17:58:49 momjian Exp $ |
|
|
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.35 2000/07/22 04:45:09 momjian Exp $ |
|
|
|
Postgres documentation |
|
|
|
Postgres documentation |
|
|
|
--> |
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
@ -1645,7 +1645,7 @@ bar |
|
|
|
<term><envar>DBNAME</envar></term> |
|
|
|
<term><envar>DBNAME</envar></term> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
The name of the database you are currently connected to. This is set everytime |
|
|
|
The name of the database you are currently connected to. This is set every time |
|
|
|
you connect to a database (including program startup), but can be unset. |
|
|
|
you connect to a database (including program startup), but can be unset. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
@ -1727,7 +1727,7 @@ bar |
|
|
|
<term><envar>HOST</envar></term> |
|
|
|
<term><envar>HOST</envar></term> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
The database server host you are currently connected to. This is set everytime |
|
|
|
The database server host you are currently connected to. This is set every time |
|
|
|
you connect to a database (including program startup), but can be unset. |
|
|
|
you connect to a database (including program startup), but can be unset. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
@ -1755,7 +1755,7 @@ bar |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
The value of the last affected oid, as returned from an <command>INSERT</command> |
|
|
|
The value of the last affected oid, as returned from an <command>INSERT</command> |
|
|
|
or <command>lo_insert</command> commmand. This variable is only guaranteed to be |
|
|
|
or <command>lo_insert</command> command. This variable is only guaranteed to be |
|
|
|
valid until after the result of the next <acronym>SQL</acronym> command has been |
|
|
|
valid until after the result of the next <acronym>SQL</acronym> command has been |
|
|
|
displayed. |
|
|
|
displayed. |
|
|
|
</para> |
|
|
|
</para> |
|
|
@ -1799,7 +1799,7 @@ bar |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
By default, if non-interactive scripts encounter an error, such as a |
|
|
|
By default, if non-interactive scripts encounter an error, such as a |
|
|
|
malformed <acronym>SQL</acronym> query or internal meta-command, |
|
|
|
malformed <acronym>SQL</acronym> query or internal meta-command, |
|
|
|
processing continues. This has been the traditional behaviour of |
|
|
|
processing continues. This has been the traditional behavior of |
|
|
|
<application>psql</application> but it is sometimes not desirable. If this variable |
|
|
|
<application>psql</application> but it is sometimes not desirable. If this variable |
|
|
|
is set, script processing will immediately terminate. If the script was |
|
|
|
is set, script processing will immediately terminate. If the script was |
|
|
|
called from another script it will terminate in the same fashion. |
|
|
|
called from another script it will terminate in the same fashion. |
|
|
@ -2023,7 +2023,7 @@ testdb=> <userinput>\set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`</userinp |
|
|
|
If <replaceable class="parameter">digits</replaceable> starts with |
|
|
|
If <replaceable class="parameter">digits</replaceable> starts with |
|
|
|
<literal>0x</literal> the rest of the characters are interpreted at a |
|
|
|
<literal>0x</literal> the rest of the characters are interpreted at a |
|
|
|
hexadecimal digit and the character with the corresponding code is |
|
|
|
hexadecimal digit and the character with the corresponding code is |
|
|
|
subsituted. If the first digit is <literal>0</literal> the characters are |
|
|
|
substituted. If the first digit is <literal>0</literal> the characters are |
|
|
|
interpreted as on octal number and the corresponding character is |
|
|
|
interpreted as on octal number and the corresponding character is |
|
|
|
substituted. Otherwise a decimal number is assumed.</para> |
|
|
|
substituted. Otherwise a decimal number is assumed.</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
@ -2184,7 +2184,7 @@ peter@localhost testdb=> SELECT * FROM my_table; |
|
|
|
(4 rows) |
|
|
|
(4 rows) |
|
|
|
|
|
|
|
|
|
|
|
</programlisting> |
|
|
|
</programlisting> |
|
|
|
Notice how the int4 colums in right aligned while the text column in left aligned. |
|
|
|
Notice how the int4 columns in right aligned while the text column in left aligned. |
|
|
|
You can make this table look differently by using the <command>\pset</command> |
|
|
|
You can make this table look differently by using the <command>\pset</command> |
|
|
|
command: |
|
|
|
command: |
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
@ -2279,7 +2279,7 @@ Field separator is "oo". |
|
|
|
|
|
|
|
|
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<application>psql</application> only works smootly with servers of the |
|
|
|
<application>psql</application> only works smoothly with servers of the |
|
|
|
same version. That does not mean other combinations will fail outright, |
|
|
|
same version. That does not mean other combinations will fail outright, |
|
|
|
but subtle and not-so-subtle problems might come up. |
|
|
|
but subtle and not-so-subtle problems might come up. |
|
|
|
</para> |
|
|
|
</para> |
|
|
@ -2288,7 +2288,7 @@ Field separator is "oo". |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Pressing Control-C during a <quote>copy in</quote> (data sent to the |
|
|
|
Pressing Control-C during a <quote>copy in</quote> (data sent to the |
|
|
|
server) doesn't show the most ideal of behaviours. If you get a message |
|
|
|
server) doesn't show the most ideal of behaviors. If you get a message |
|
|
|
such as <quote>PQexec: you gotta get out of a COPY state yourself</quote>, |
|
|
|
such as <quote>PQexec: you gotta get out of a COPY state yourself</quote>, |
|
|
|
simply reset the connection by entering <literal>\c - -</literal>. |
|
|
|
simply reset the connection by entering <literal>\c - -</literal>. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|