Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
768916d7
Commit
768916d7
authored
Jun 04, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This is a small fix in FAQ. It just clean up some old comments and
change an old -not-working piece of code.
parent
bf2a115f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
doc/FAQ
doc/FAQ
+6
-6
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+6
-10
No files found.
doc/FAQ
View file @
768916d7
Frequently Asked Questions (FAQ) for PostgreSQL
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Mon Mar 29 00:07:11 ES
T 2004
Last updated:
Fri Jun 4 00:09:16 ED
T 2004
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
@@ -965,11 +965,11 @@ BYTEA bytea variable-length byte array (null-byte safe)
...
@@ -965,11 +965,11 @@ BYTEA bytea variable-length byte array (null-byte safe)
all databases. If you want to change the OID to something else, or if
all databases. If you want to change the OID to something else, or if
you want to make a copy of the table, with the original OIDs, there is
you want to make a copy of the table, with the original OIDs, there is
no reason you can't do it:
no reason you can't do it:
CREATE TABLE new_table(
old_oid oid,
mycol int);
CREATE TABLE new_table(mycol int);
SELECT o
ld_oid, mycol INTO new FROM old
;
SELECT o
id AS old_oid, mycol INTO tmp_table FROM old_table
;
COPY
new
TO '/tmp/pgtable';
COPY
tmp_table
TO '/tmp/pgtable';
DELETE FROM new
;
COPY new_table WITH OIDS FROM '/tmp/pgtable'
;
COPY new WITH OIDS FROM '/tmp/pgtable'
;
DROP TABLE tmp_table
;
OIDs are stored as 4-byte integers, and will overflow at 4 billion. No
OIDs are stored as 4-byte integers, and will overflow at 4 billion. No
one has reported this ever happening, and we plan to have the limit
one has reported this ever happening, and we plan to have the limit
...
...
doc/src/FAQ/FAQ.html
View file @
768916d7
...
@@ -10,7 +10,7 @@
...
@@ -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:
Thu May 6 10:22:34
EDT 2004
</P>
<P>
Last updated:
Fri Jun 4 00:09:16
EDT 2004
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
@@ -1213,16 +1213,12 @@ BYTEA bytea variable-length byte array (null-byte safe)
...
@@ -1213,16 +1213,12 @@ BYTEA bytea variable-length byte array (null-byte safe)
of the table, with the original
<SMALL>
OID
</SMALL>
s, there is no
of the table, with the original
<SMALL>
OID
</SMALL>
s, there is no
reason you can't do it:
</P>
reason you can't do it:
</P>
<PRE>
<PRE>
CREATE TABLE new_table(
old_oid oid,
mycol int);
CREATE TABLE new_table(mycol int);
SELECT o
ld_oid, mycol INTO new FROM old
;
SELECT o
id AS old_oid, mycol INTO tmp_table FROM old_table
;
COPY
new
TO '/tmp/pgtable';
COPY
tmp_table
TO '/tmp/pgtable';
DELETE FROM new
;
COPY new_table WITH OIDS FROM '/tmp/pgtable'
;
COPY new WITH OIDS FROM '/tmp/pgtable'
;
DROP TABLE tmp_table
;
</PRE>
</PRE>
<!--
CREATE TABLE new_table (mycol int);
INSERT INTO new_table (oid, mycol) SELECT oid, mycol FROM old_table;
-->
<P>
O
<SMALL>
ID
</SMALL>
s are stored as 4-byte integers, and will
<P>
O
<SMALL>
ID
</SMALL>
s are stored as 4-byte integers, and will
overflow at 4 billion. No one has reported this ever happening, and
overflow at 4 billion. No one has reported this ever happening, and
we plan to have the limit removed before anyone does.
</P>
we plan to have the limit removed before anyone does.
</P>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment