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
022da0ed
Commit
022da0ed
authored
Nov 19, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERIAL no longer creates an index by default, as of 7.3.
parent
cfeca621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
doc/FAQ
doc/FAQ
+3
-4
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+2
-3
No files found.
doc/FAQ
View file @
022da0ed
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Sat Nov 15 23:41:03
EST 2003
Last updated:
Wed Nov 19 11:50:04
EST 2003
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -879,8 +879,8 @@ BYTEA bytea variable-length byte array (null-byte safe)
4.15.1) How do I create a serial/auto-incrementing field?
PostgreSQL supports a SERIAL data type. It auto-creates a sequence
and
index on the column.
For example, this:
PostgreSQL supports a SERIAL data type. It auto-creates a sequence
.
For example, this:
CREATE TABLE person (
id SERIAL,
name TEXT
...
...
@@ -892,7 +892,6 @@ BYTEA bytea variable-length byte array (null-byte safe)
id INT4 NOT NULL DEFAULT nextval('person_id_seq'),
name TEXT
);
CREATE UNIQUE INDEX person_id_key ON person ( id );
See the create_sequence manual page for more information about
sequences. You can also use each row's OID field as a unique value.
...
...
doc/src/FAQ/FAQ.html
View file @
022da0ed
...
...
@@ -10,7 +10,7 @@
alink=
"#0000ff"
>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<P>
Last updated:
Sat Nov 15 23:41:03
EST 2003
</P>
<P>
Last updated:
Wed Nov 19 11:50:04
EST 2003
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
...
@@ -1102,7 +1102,7 @@ BYTEA bytea variable-length byte array (null-byte safe)
serial/auto-incrementing field?
</H4>
<P>
PostgreSQL supports a
<SMALL>
SERIAL
</SMALL>
data type. It
auto-creates a sequence
and index on the column.
For example,
auto-creates a sequence
.
For example,
this:
</P>
<PRE>
CREATE TABLE person (
...
...
@@ -1118,7 +1118,6 @@ BYTEA bytea variable-length byte array (null-byte safe)
id INT4 NOT NULL DEFAULT nextval('person_id_seq'),
name TEXT
);
CREATE UNIQUE INDEX person_id_key ON person ( id );
</PRE>
See the
<I>
create_sequence
</I>
manual page for more information
...
...
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