Skip to content

Commit d39a369

Browse files
committed
Update FAQ.
1 parent 0ae5540 commit d39a369

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

doc/FAQ

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: Sat Feb 2 16:46:36 EST 2002
4+
Last updated: Tue Feb 12 12:14:52 EST 2002
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -80,6 +80,8 @@
8080
4.15.2) How do I get the value of a SERIAL insert?
8181
4.15.3) Don't currval() and nextval() lead to a race condition with
8282
other users?
83+
4.15.4) Why aren't my sequence numbers reused on transaction abort?
84+
Why are there gaps in the numbers of my sequence/SERIAL column?
8385
4.16) What is an OID? What is a TID?
8486
4.17) What is the meaning of some of the terms used in PostgreSQL?
8587
4.18) Why do I get the error "ERROR: Memory exhausted in
@@ -863,6 +865,13 @@ BYTEA bytea variable-length byte array (null-byte safe)
863865
No. Currval() returns the current value assigned by your backend, not
864866
by all users.
865867

868+
4.15.4) Why aren't my sequence numbers reused on transaction abort? Why are
869+
there gaps in the numbers of my sequence/SERIAL column?
870+
871+
To improve concurrency, sequence values are given out to running
872+
transactions as needed and are now locked until the transaction
873+
completes. This causes gaps in numbering from aborted transactions.
874+
866875
4.16) What is an OID? What is a TID?
867876

868877
OIDs are PostgreSQL's answer to unique row ids. Every row that is

doc/src/FAQ/FAQ.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
alink="#0000ff">
1515
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1616

17-
<P>Last updated: Sat Feb 2 16:46:36 EST 2002</P>
17+
<P>Last updated: Tue Feb 12 12:14:52 EST 2002</P>
1818

1919
<P>Current maintainer: Bruce Momjian (<A href=
2020
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -119,6 +119,9 @@ <H2 align="center">Operational Questions</H2>
119119
<SMALL>SERIAL</SMALL> insert?<BR>
120120
<A href="#4.15.3">4.15.3</A>) Don't <I>currval()</I> and
121121
<I>nextval()</I> lead to a race condition with other users?<BR>
122+
<A href="#4.15.4">4.15.4</A>) Why aren't my sequence numbers reused
123+
on transaction abort? Why are there gaps in the numbers of my
124+
sequence/SERIAL column?<BR>
122125
<A href="#4.16">4.16</A>) What is an <SMALL>OID</SMALL>? What is a
123126
<SMALL>TID</SMALL>?<BR>
124127
<A href="#4.17">4.17</A>) What is the meaning of some of the terms
@@ -1092,6 +1095,15 @@ <H4><A name="4.15.3">4.15.3</A>) Don't <I>currval()</I> and
10921095
<P>No. Currval() returns the current value assigned by your
10931096
backend, not by all users.</P>
10941097

1098+
<H4><A name="4.15.4">4.15.4</A>) Why aren't my sequence numbers reused
1099+
on transaction abort? Why are there gaps in the numbers of my
1100+
sequence/SERIAL column?</H4>
1101+
1102+
<P>To improve concurrency, sequence values are given out to running
1103+
transactions as needed and are now <i>locked</i> until the
1104+
transaction completes. This causes gaps in numbering from aborted
1105+
transactions.
1106+
10951107
<H4><A name="4.16">4.16</A>) What is an <SMALL>OID</SMALL>? What is
10961108
a <SMALL>TID</SMALL>?</H4>
10971109

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy