Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit022da0e

Browse files
committed
SERIAL no longer creates an index by default, as of 7.3.
1 parentcfeca62 commit022da0e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎doc/FAQ

Lines changed: 3 additions & 4 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:Sat Nov15 23:41:03 EST 2003
4+
Last updated:Wed Nov19 11:50:04 EST 2003
55

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

@@ -879,8 +879,8 @@ BYTEA bytea variable-length byte array (null-byte safe)
879879

880880
4.15.1) How do I create a serial/auto-incrementing field?
881881

882-
PostgreSQL supports a SERIAL data type. It auto-creates a sequence and
883-
index on the column.For example, this:
882+
PostgreSQL supports a SERIAL data type. It auto-creates a sequence.
883+
For example, this:
884884
CREATE TABLE person (
885885
id SERIAL,
886886
name TEXT
@@ -892,7 +892,6 @@ BYTEA bytea variable-length byte array (null-byte safe)
892892
id INT4 NOT NULL DEFAULT nextval('person_id_seq'),
893893
name TEXT
894894
);
895-
CREATE UNIQUE INDEX person_id_key ON person ( id );
896895

897896
See the create_sequence manual page for more information about
898897
sequences. You can also use each row's OID field as a unique value.

‎doc/src/FAQ/FAQ.html

Lines changed: 2 additions & 3 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:Sat Nov15 23:41:03 EST 2003</P>
13+
<P>Last updated:Wed Nov19 11:50:04 EST 2003</P>
1414

1515
<P>Current maintainer: Bruce Momjian (<Ahref=
1616
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -1102,7 +1102,7 @@ <H4><A name="4.15.1">4.15.1</A>) How do I create a
11021102
serial/auto-incrementing field?</H4>
11031103

11041104
<P>PostgreSQL supports a<SMALL>SERIAL</SMALL> data type. It
1105-
auto-creates a sequence and index on the column. For example,
1105+
auto-creates a sequence. For example,
11061106
this:</P>
11071107
<PRE>
11081108
CREATE TABLE person (
@@ -1118,7 +1118,6 @@ <H4><A name="4.15.1">4.15.1</A>) How do I create a
11181118
id INT4 NOT NULL DEFAULT nextval('person_id_seq'),
11191119
name TEXT
11201120
);
1121-
CREATE UNIQUE INDEX person_id_key ON person ( id );
11221121
</PRE>
11231122

11241123
See the<I>create_sequence</I> manual page for more information

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp