<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.13 2000/03/27 17:14:42 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.14 2000/07/21 17:58:49 momjian Exp $
Postgres documentation
-->
Usage
</title>
<para>The following command defines a new operator,
- area-equality, for the BOX data type.
+ area-equality, for the BOX data type:
</para>
<programlisting>
CREATE OPERATOR === (
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/postgres-ref.sgml,v 1.11 2000/07/21 03:14:33 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/postgres-ref.sgml,v 1.12 2000/07/21 17:58:49 momjian Exp $
Postgres documentation
-->
<para>
Override restrictions, so system table structures can be modified.
These tables are typically those with a leading
- "<literal>pg_</literal>" in the table name.
+ <literal>pg_</literal> in the table name.
</para>
</listitem>
</varlistentry>
<listitem>
<para>
Ignore system indexes to scan/update system
- tuples. <command>REINDEX</command> for system tables/indexes
+ tuples. The <command>REINDEX</command> for system tables/indexes
requires this option. System tables are
- typically those with a leading "<literal>pg_</literal>" in the
+ typically those with a leading <literal>pg_</literal> in the
table name.
</para>
</listitem>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.33 2000/05/12 00:54:52 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.34 2000/07/21 17:58:49 momjian Exp $
Postgres documentation
-->
<para>
The new query buffer is then re-parsed according to the normal rules of
<application>psql</application>, where the whole buffer is treated as
- a single line. (Thus you cannot make <quote>scripts</quote> this way,
- use <command>\i</command> for that.) This means also that
+ a single line. (Thus you cannot make scripts this way.
+ Use <command>\i</command> for that.) This means also that
if the query ends with (or rather contains) a semicolon, it is immediately
executed. In other cases it will merely wait in the query buffer.
</para>
<listitem>
<para>
- Sets the field separator for unaligned query output. The default is <quote><literal>|</literal></quote>
- (a <quote>pipe</quote> symbol). See also <command>\pset</command> for a generic way
+ Sets the field separator for unaligned query output. The default is
+pipe (<literal>|</literal>). See also <command>\pset</command> for a generic way
of setting output options.
</para>
</listitem>
<para>
As of version 7.0, <application>psql</application> automatically issues a
password prompt whenever the backend requests password authentication.
- Because this is currently based on a <quote>hack</quote>, the automatic
+ Because this is currently based on a hack, the automatic
recognition might mysteriously fail, hence this option to force a prompt.
If no password prompt is issued and the backend requires password authentication
the connection attempt will fail.
<para>
The first example shows how to spread a query over several lines of input.
- Notice the changing prompt.
+ Notice the changing prompt:
<programlisting>
testdb=> <userinput>CREATE TABLE my_table (</userinput>
testdb(> <userinput> first integer not null default 0,</userinput>
</programlisting>
Notice how the int4 colums in right aligned while the text column in left aligned.
You can make this table look differently by using the <command>\pset</command>
- command.
+ command:
<programlisting>
peter@localhost testdb=> <userinput>\pset border 2</userinput>
Border style is 2.