SERIAL no longer creates an index by default, as of 7.3.
authorBruce Momjian
Wed, 19 Nov 2003 16:50:48 +0000 (16:50 +0000)
committerBruce Momjian
Wed, 19 Nov 2003 16:50:48 +0000 (16:50 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 6dcad1c006dbf53ae4a75c4374797f4b75b16c0e..e532946aa8f1f7d1d38b8bc82cbfed6890605299 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 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 ([email protected])
    
@@ -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.
index 52b11dd0eb5f807ebf4b3c13f43b09d02da69bae..52a164649091dcd58d6b0cbe9b1b324a17b655f5 100644 (file)
@@ -10,7 +10,7 @@
   alink="#0000ff">
     

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 (

@@ -1102,7 +1102,7 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     serial/auto-incrementing field?
 
     

PostgreSQL supports a SERIAL data type. It

-    auto-creates a sequence and index on the column. For example,
+    auto-creates a sequence For example,
     this:

 
     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 );
 
 
     See the create_sequence manual page for more information