Commit c3d2b49d authored by Bruce Momjian's avatar Bruce Momjian

datatype -> data type.

parent 39ee0f55
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_aggregate.sgml,v 1.10 2000/07/17 03:04:41 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_aggregate.sgml,v 1.11 2000/09/12 20:52:07 momjian Exp $
Postgres documentation Postgres documentation
--> -->
...@@ -98,7 +98,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> ( BASETYPE = ...@@ -98,7 +98,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> ( BASETYPE =
result after all input data has been traversed. The function result after all input data has been traversed. The function
must take a single argument of type must take a single argument of type
<replaceable class="PARAMETER">state_type</replaceable>. <replaceable class="PARAMETER">state_type</replaceable>.
The output datatype of the aggregate is defined as the return The output data type of the aggregate is defined as the return
type of this function. type of this function.
If <replaceable class="PARAMETER">ffunc</replaceable> If <replaceable class="PARAMETER">ffunc</replaceable>
is not specified, then the ending state value is used as the is not specified, then the ending state value is used as the
...@@ -113,7 +113,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> ( BASETYPE = ...@@ -113,7 +113,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> ( BASETYPE =
<listitem> <listitem>
<para> <para>
The initial setting for the state value. This must be a literal The initial setting for the state value. This must be a literal
constant in the form accepted for the datatype constant in the form accepted for the data type
<replaceable class="PARAMETER">state_type</replaceable>. <replaceable class="PARAMETER">state_type</replaceable>.
If not specified, the state value starts out NULL. If not specified, the state value starts out NULL.
</para> </para>
...@@ -201,7 +201,7 @@ CREATE ...@@ -201,7 +201,7 @@ CREATE
that is, an initial value for the internal state value. that is, an initial value for the internal state value.
This is specified and stored in the database as a field of type This is specified and stored in the database as a field of type
<type>text</type>, but it must be a valid external representation <type>text</type>, but it must be a valid external representation
of a constant of the state value datatype. If it is not supplied of a constant of the state value data type. If it is not supplied
then the state value starts out NULL. then the state value starts out NULL.
</para> </para>
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_index.sgml,v 1.14 2000/06/19 03:54:15 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_index.sgml,v 1.15 2000/09/12 20:52:08 momjian Exp $
Postgres documentation Postgres documentation
--> -->
...@@ -290,11 +290,11 @@ ERROR: Cannot create index: 'index_name' already exists. ...@@ -290,11 +290,11 @@ ERROR: Cannot create index: 'index_name' already exists.
four-byte integers would use the <literal>int4_ops</literal> class; four-byte integers would use the <literal>int4_ops</literal> class;
this operator class includes comparison functions for four-byte this operator class includes comparison functions for four-byte
integers. In practice the default operator class for the field's integers. In practice the default operator class for the field's
datatype is usually sufficient. The main point of having operator classes data type is usually sufficient. The main point of having operator classes
is that for some datatypes, there could be more than one meaningful is that for some data types, there could be more than one meaningful
ordering. For example, we might want to sort a complex-number datatype ordering. For example, we might want to sort a complex-number data type
either by absolute value or by real part. We could do this by defining either by absolute value or by real part. We could do this by defining
two operator classes for the datatype and then selecting the proper two operator classes for the data type and then selecting the proper
class when making an index. There are also some operator classes with class when making an index. There are also some operator classes with
special purposes: special purposes:
...@@ -303,7 +303,7 @@ ERROR: Cannot create index: 'index_name' already exists. ...@@ -303,7 +303,7 @@ ERROR: Cannot create index: 'index_name' already exists.
<para> <para>
The operator classes <literal>box_ops</literal> and The operator classes <literal>box_ops</literal> and
<literal>bigbox_ops</literal> both support rtree indices on the <literal>bigbox_ops</literal> both support rtree indices on the
<literal>box</literal> datatype. <literal>box</literal> data type.
The difference between them is that <literal>bigbox_ops</literal> The difference between them is that <literal>bigbox_ops</literal>
scales box coordinates down, to avoid floating point exceptions from scales box coordinates down, to avoid floating point exceptions from
doing multiplication, addition, and subtraction on very large doing multiplication, addition, and subtraction on very large
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.15 2000/08/12 05:15:23 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.16 2000/09/12 20:52:08 momjian Exp $
Postgres documentation Postgres documentation
--> -->
...@@ -303,8 +303,8 @@ MYBOXES.description !== box '((0,0),(1,1))' ...@@ -303,8 +303,8 @@ MYBOXES.description !== box '((0,0),(1,1))'
the lines of [SHAP86]; however, it must know whether this the lines of [SHAP86]; however, it must know whether this
strategy is applicable. The current hash-join algorithm strategy is applicable. The current hash-join algorithm
is only correct for operators that represent equality tests; is only correct for operators that represent equality tests;
furthermore, equality of the datatype must mean bitwise equality furthermore, equality of the data type must mean bitwise equality
of the representation of the type. (For example, a datatype that of the representation of the type. (For example, a data type that
contains unused bits that don't matter for equality tests could contains unused bits that don't matter for equality tests could
not be hashjoined.) not be hashjoined.)
The HASHES flag indicates to the query optimizer that a hash join The HASHES flag indicates to the query optimizer that a hash join
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.13 2000/08/24 23:36:29 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.14 2000/09/12 20:52:08 momjian Exp $
Postgres documentation Postgres documentation
--> -->
...@@ -122,7 +122,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep ...@@ -122,7 +122,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
<term><replaceable class="parameter">default</replaceable></term> <term><replaceable class="parameter">default</replaceable></term>
<listitem> <listitem>
<para> <para>
The default value for the datatype. Usually this is omitted, The default value for the data type. Usually this is omitted,
so that the default is NULL. so that the default is NULL.
</para> </para>
</listitem> </listitem>
...@@ -152,7 +152,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep ...@@ -152,7 +152,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
<term><replaceable class="parameter">alignment</replaceable></term> <term><replaceable class="parameter">alignment</replaceable></term>
<listitem> <listitem>
<para> <para>
Storage alignment requirement of the datatype. If specified, must Storage alignment requirement of the data type. If specified, must
be '<literal>int4</literal>' or '<literal>double</literal>'; be '<literal>int4</literal>' or '<literal>double</literal>';
the default is '<literal>int4</literal>'. the default is '<literal>int4</literal>'.
</para> </para>
...@@ -163,7 +163,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep ...@@ -163,7 +163,7 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
<term><replaceable class="parameter">storage</replaceable></term> <term><replaceable class="parameter">storage</replaceable></term>
<listitem> <listitem>
<para> <para>
Storage technique for the datatype. If specified, must Storage technique for the data type. If specified, must
be '<literal>plain</literal>', '<literal>external</literal>', be '<literal>plain</literal>', '<literal>external</literal>',
'<literal>extended</literal>', or '<literal>main</literal>'; '<literal>extended</literal>', or '<literal>main</literal>';
the default is '<literal>plain</literal>'. the default is '<literal>plain</literal>'.
...@@ -298,9 +298,9 @@ CREATE ...@@ -298,9 +298,9 @@ CREATE
<para> <para>
The <replaceable class="parameter">storage</replaceable> keyword The <replaceable class="parameter">storage</replaceable> keyword
allows selection of TOAST storage method for variable-length datatypes allows selection of TOAST storage method for variable-length data types
(only <literal>plain</literal> is allowed for fixed-length types). (only <literal>plain</literal> is allowed for fixed-length types).
<literal>plain</literal> disables TOAST for the datatype: it will always <literal>plain</literal> disables TOAST for the data type: it will always
be stored in-line and not compressed. be stored in-line and not compressed.
<literal>extended</literal> is full TOAST capability: the system will <literal>extended</literal> is full TOAST capability: the system will
first try to compress a long data value, and will move the value out of first try to compress a long data value, and will move the value out of
......
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