Commit 4996eea8 authored by Bruce Momjian's avatar Bruce Momjian

This patch includes more SGML markup fixes as well as a few minor

additions to the docs.

Neil Conway
parent aca86479
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ddl.sgml,v 1.10 2002/11/15 03:11:15 momjian Exp $ --> <!-- $Header: /cvsroot/pgsql/doc/src/sgml/ddl.sgml,v 1.11 2003/02/19 03:13:24 momjian Exp $ -->
<chapter id="ddl"> <chapter id="ddl">
<title>Data Definition</title> <title>Data Definition</title>
...@@ -189,7 +189,7 @@ DROP TABLE products; ...@@ -189,7 +189,7 @@ DROP TABLE products;
individual table a row came from. The individual table a row came from. The
<structfield>tableoid</structfield> can be joined against the <structfield>tableoid</structfield> can be joined against the
<structfield>oid</structfield> column of <structfield>oid</structfield> column of
<classname>pg_class</classname> to obtain the table name. <structname>pg_class</structname> to obtain the table name.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -904,9 +904,9 @@ WHERE c.altitude &gt; 500; ...@@ -904,9 +904,9 @@ WHERE c.altitude &gt; 500;
139798 | Madison | 845 139798 | Madison | 845
</programlisting> </programlisting>
(If you try to reproduce this example, you will probably get different (If you try to reproduce this example, you will probably get
numeric OIDs.) By doing a join with pg_class you can see the actual table different numeric OIDs.) By doing a join with
names: <structname>pg_class</> you can see the actual table names:
<programlisting> <programlisting>
SELECT p.relname, c.name, c.altitude SELECT p.relname, c.name, c.altitude
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.61 2003/01/19 00:13:29 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.62 2003/02/19 03:13:25 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -230,7 +230,10 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is: ...@@ -230,7 +230,10 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
for large tables, since it will reduce OID consumption and for large tables, since it will reduce OID consumption and
thereby postpone wraparound of the 32-bit OID counter. Once the thereby postpone wraparound of the 32-bit OID counter. Once the
counter wraps around, uniqueness of OIDs can no longer be counter wraps around, uniqueness of OIDs can no longer be
assumed, which considerably reduces their usefulness. assumed, which considerably reduces their usefulness. Specifying
<literal>WITHOUT OIDS</literal> also reduces the space required
to store the table on disk by 4 bytes per row of the table,
thereby improving performance.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -881,8 +884,8 @@ CREATE ASSERTION <replaceable>name</replaceable> CHECK ( <replaceable>condition< ...@@ -881,8 +884,8 @@ CREATE ASSERTION <replaceable>name</replaceable> CHECK ( <replaceable>condition<
<!-- <!--
<para> <para>
Domain constraints are defined by CREATE DOMAIN or ALTER DOMAIN Domain constraints are defined by <command>CREATE
statements: DOMAIN</command> or <command>ALTER DOMAIN</command> statements:
</para> </para>
<para> <para>
Domain constraint: Domain constraint:
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.38 2003/01/19 00:13:29 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.39 2003/02/19 03:13:25 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -218,7 +218,8 @@ CREATE TYPE ...@@ -218,7 +218,8 @@ CREATE TYPE
<para> <para>
The first form of <command>CREATE TYPE</command> creates a new base type The first form of <command>CREATE TYPE</command> creates a new base type
(scalar type). It requires the (scalar type). It requires the
registration of two functions (using CREATE FUNCTION) before defining the registration of two functions (using <command>CREATE
FUNCTION</command>) before defining the
type. The representation of a new base type is determined by type. The representation of a new base type is determined by
<replaceable class="parameter">input_function</replaceable>, which <replaceable class="parameter">input_function</replaceable>, which
converts the type's external representation to an internal converts the type's external representation to an internal
...@@ -400,8 +401,8 @@ CREATE TYPE ...@@ -400,8 +401,8 @@ CREATE TYPE
<para> <para>
User-defined type names cannot begin with the underscore character User-defined type names cannot begin with the underscore character
(<quote><literal>_</literal></quote>) and can only be 62 (<quote><literal>_</literal></quote>) and can only be 62
characters long (or in general <literal>NAMEDATALEN-2</>, rather than characters long (or in general <symbol>NAMEDATALEN</symbol> - 2, rather than
the <literal>NAMEDATALEN-1</> characters allowed for other names). the <symbol>NAMEDATALEN</symbol> - 1 characters allowed for other names).
Type names beginning with underscore are Type names beginning with underscore are
reserved for internally-created array type names. reserved for internally-created array type names.
</para> </para>
......
This diff is collapsed.
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.74 2002/11/15 03:11:17 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.75 2003/02/19 03:13:24 momjian Exp $
--> -->
<chapter id="sql-syntax"> <chapter id="sql-syntax">
...@@ -121,9 +121,9 @@ INSERT INTO MY_TABLE VALUES (3, 'hi there'); ...@@ -121,9 +121,9 @@ INSERT INTO MY_TABLE VALUES (3, 'hi there');
characters of an identifier; longer names can be written in characters of an identifier; longer names can be written in
commands, but they will be truncated. By default, commands, but they will be truncated. By default,
<symbol>NAMEDATALEN</symbol> is 64 so the maximum identifier <symbol>NAMEDATALEN</symbol> is 64 so the maximum identifier
length is 63 (but at the time <productname>PostgreSQL</> is built, length is 63. If this limit is problematic, it can be raised by
<symbol>NAMEDATALEN</symbol> can be changed in changing the <symbol>NAMEDATALEN</symbol> constant in
<filename>src/include/postgres_ext.h</filename>). <filename>src/include/postgres_ext.h</filename>.
</para> </para>
<para> <para>
...@@ -541,8 +541,8 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> ) ...@@ -541,8 +541,8 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> )
<para> <para>
A dollar sign (<literal>$</literal>) followed by digits is used A dollar sign (<literal>$</literal>) followed by digits is used
to represent the positional parameters in the body of a function to represent the positional parameters in the body of a function
definition. In other contexts the dollar sign may be part of an definition or a prepared statement. In other contexts the
operator name. dollar sign may be part of an operator name.
</para> </para>
</listitem> </listitem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment