1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.155 2005/01/22 22:56:35 momjian Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.156 2005/03/13 09:36:30 neilc Exp $
3
3
-->
4
4
5
5
<chapter id="datatype">
@@ -2980,12 +2980,12 @@ SELECT * FROM test;
2980
2980
<para>
2981
2981
Object identifiers (OIDs) are used internally by
2982
2982
<productname>PostgreSQL</productname> as primary keys for various
2983
- system tables.An OID system column is also added to user-created
2984
- tables, unless <literal>WITHOUT OIDS</literal> is specified when
2985
- the table is created, or the <xref linkend="guc-default-with-oids">
2986
- configuration variable isset to false . Type <type>oid</>
2987
- represents an object identifier. There are also several alias
2988
- types for <type>oid</>: <type>regproc</>, <type>regprocedure</>,
2983
+ system tables.OIDs are not added to user-created tables, unless
2984
+ <literal>WITH OIDS</literal> is specified when the table is
2985
+ created, or the <xref linkend="guc-default-with-oids">
2986
+ configuration variable isenabled . Type <type>oid</> represents
2987
+ an object identifier. There are also several alias types for
2988
+ <type>oid</>: <type>regproc</>, <type>regprocedure</>,
2989
2989
<type>regoper</>, <type>regoperator</>, <type>regclass</>, and
2990
2990
<type>regtype</>. <xref linkend="datatype-oid-table"> shows an
2991
2991
overview.
@@ -3000,28 +3000,11 @@ SELECT * FROM test;
3000
3000
references to system tables.
3001
3001
</para>
3002
3002
3003
- <note>
3004
- <para>
3005
- OIDs are included by default in user-created tables in
3006
- <productname>PostgreSQL</productname> &version;. However, this
3007
- behavior is likely to change in a future version of
3008
- <productname>PostgreSQL</productname>. Eventually, user-created
3009
- tables will not include an OID system column unless <literal>WITH
3010
- OIDS</literal> is specified when the table is created, or the
3011
- <varname>default_with_oids</varname> configuration variable is set
3012
- to true. If your application requires the presence of an OID
3013
- system column in a table, it should specify <literal>WITH
3014
- OIDS</literal> when that table is created to ensure compatibility
3015
- with future releases of <productname>PostgreSQL</productname>.
3016
- </para>
3017
- </note>
3018
-
3019
3003
<para>
3020
3004
The <type>oid</> type itself has few operations beyond comparison.
3021
- It can be cast to
3022
- integer, however, and then manipulated using the standard integer
3023
- operators. (Beware of possible signed-versus-unsigned confusion
3024
- if you do this.)
3005
+ It can be cast to integer, however, and then manipulated using the
3006
+ standard integer operators. (Beware of possible
3007
+ signed-versus-unsigned confusion if you do this.)
3025
3008
</para>
3026
3009
3027
3010
<para>