Skip to content

Commit 2fb6e84

Browse files
committed
Add mention of OID wraparound.
1 parent 05f4b03 commit 2fb6e84

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/FAQ

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: Fri Aug 29 21:40:10 EDT 2003
4+
Last updated: Mon Sep 1 12:47:42 EDT 2003
55

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

@@ -916,7 +916,8 @@ BYTEA bytea variable-length byte array (null-byte safe)
916916

917917
Finally, you could use the OID returned from the INSERT statement to
918918
look up the default value, though this is probably the least portable
919-
approach. In Perl, using DBI with Edmund Mergl's DBD::Pg module, the
919+
approach, and the oid value will wrap around when it reaches 4
920+
billion. In Perl, using DBI with Edmund Mergl's DBD::Pg module, the
920921
oid value is made available via $sth->{pg_oid_status} after
921922
$sth->execute().
922923

doc/src/FAQ/FAQ.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
alink="#0000ff">
1111
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1212

13-
<P>Last updated: Fri Aug 29 21:40:10 EDT 2003</P>
13+
<P>Last updated: Mon Sep 1 12:47:42 EDT 2003</P>
1414

1515
<P>Current maintainer: Bruce Momjian (<A href=
1616
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -1152,7 +1152,8 @@ <H4><A name="4.15.2">4.15.2</A>) How do I get the value of a
11521152

11531153
Finally, you could use the <A href="#4.16"><SMALL>OID</SMALL></A>
11541154
returned from the <SMALL>INSERT</SMALL> statement to look up the
1155-
default value, though this is probably the least portable approach.
1155+
default value, though this is probably the least portable approach,
1156+
and the oid value will wrap around when it reaches 4 billion.
11561157
In Perl, using DBI with Edmund Mergl's DBD::Pg module, the oid
11571158
value is made available via <I>$sth-&gt;{pg_oid_status}</I> after
11581159
<I>$sth-&gt;execute()</I>.

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