mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Mention OIDs are now not created by default.
This commit is contained in:
parent
8c556ce1c2
commit
ba2edcac4f
12
doc/FAQ
12
doc/FAQ
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
|
|
||||||
Last updated: Tue Nov 21 10:37:54 EST 2006
|
Last updated: Tue Nov 21 23:16:54 EST 2006
|
||||||
|
|
||||||
Current maintainer: Bruce Momjian (bruce@momjian.us)
|
Current maintainer: Bruce Momjian (bruce@momjian.us)
|
||||||
|
|
||||||
@ -728,11 +728,11 @@
|
|||||||
|
|
||||||
4.12) What is an OID? What is a CTID?
|
4.12) What is an OID? What is a CTID?
|
||||||
|
|
||||||
Every row that is created in PostgreSQL gets a unique OID unless
|
If a table is created WITH OIDS, each row gets a unique a OID. OIDs
|
||||||
created WITHOUT OIDS. OIDs are automatically assigned unique 4-byte
|
are automatically assigned unique 4-byte integers that are unique
|
||||||
integers that are unique across the entire installation. However, they
|
across the entire installation. However, they overflow at 4 billion,
|
||||||
overflow at 4 billion, and then the OIDs start being duplicated.
|
and then the OIDs start being duplicated. PostgreSQL uses OIDs to link
|
||||||
PostgreSQL uses OIDs to link its internal system tables together.
|
its internal system tables together.
|
||||||
|
|
||||||
To uniquely number rows in user tables, it is best to use SERIAL
|
To uniquely number rows in user tables, it is best to use SERIAL
|
||||||
rather than OIDs because SERIAL sequences are unique only within a
|
rather than OIDs because SERIAL sequences are unique only within a
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
alink="#0000ff">
|
alink="#0000ff">
|
||||||
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
||||||
|
|
||||||
<P>Last updated: Tue Nov 21 10:37:54 EST 2006</P>
|
<P>Last updated: Tue Nov 21 23:16:54 EST 2006</P>
|
||||||
|
|
||||||
<P>Current maintainer: Bruce Momjian (<A href=
|
<P>Current maintainer: Bruce Momjian (<A href=
|
||||||
"mailto:bruce@momjian.us">bruce@momjian.us</A>)
|
"mailto:bruce@momjian.us">bruce@momjian.us</A>)
|
||||||
@ -956,13 +956,13 @@ length</TD></TR>
|
|||||||
<H3 id="item4.12">4.12) What is an <SMALL>OID</SMALL>? What is
|
<H3 id="item4.12">4.12) What is an <SMALL>OID</SMALL>? What is
|
||||||
a <SMALL>CTID</SMALL>?</H3>
|
a <SMALL>CTID</SMALL>?</H3>
|
||||||
|
|
||||||
<P>Every row that is created in PostgreSQL gets a unique
|
<P>If a table is created <SMALL>WITH OIDS</SMALL>, each row
|
||||||
<SMALL>OID</SMALL> unless created <SMALL>WITHOUT OIDS</SMALL>.
|
gets a unique a <SMALL>OID</SMALL>. O<SMALL>ID</SMALL>s are
|
||||||
O<SMALL>ID</SMALL>s are automatically assigned unique 4-byte
|
automatically assigned unique 4-byte integers that are unique
|
||||||
integers that are unique across the entire installation. However,
|
across the entire installation. However, they overflow at 4
|
||||||
they overflow at 4 billion, and then the O<SMALL>ID</SMALL>s start
|
billion, and then the O<SMALL>ID</SMALL>s start being duplicated.
|
||||||
being duplicated. PostgreSQL uses <SMALL>OID</SMALL>s to link its
|
PostgreSQL uses <SMALL>OID</SMALL>s to link its internal system
|
||||||
internal system tables together.</P>
|
tables together.</P>
|
||||||
|
|
||||||
<P>To uniquely number rows in user tables, it is best to use
|
<P>To uniquely number rows in user tables, it is best to use
|
||||||
<SMALL>SERIAL</SMALL> rather than O<SMALL>ID</SMALL>s because
|
<SMALL>SERIAL</SMALL> rather than O<SMALL>ID</SMALL>s because
|
||||||
|
Loading…
Reference in New Issue
Block a user