Re: Equivalent for AUTOINCREMENT? - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: Equivalent for AUTOINCREMENT?
Date
Msg-id 2f4958ff0810310639occ0bfb0k8eab8ebe56e86a38@mail.gmail.com
Whole thread Raw
In response to Equivalent for AUTOINCREMENT?  (Michelle Konzack <linux4michelle@tamay-dogan.net>)
Responses Re: Equivalent for AUTOINCREMENT?
List pgsql-general


# create table foo( a SERIAL );
NOTICE: CREATE TABLE will create implicit sequence "foo_a_seq" for serial column "foo.a"
CREATE TABLE

# \d+ foo
  Table "public.foo"
 Column | Type | Modifiers | Description
--------+---------+-------------------------------------------------+-------------
 a | integer | not null default nextval('foo_a_seq'::regclass) |
Has OIDs: no

AUTOINCREMENT has so many problems, that soon you'll start to love sequences so much, you'll start to hate mysql's childlish approach to problem solving :)

pgsql-general by date:

Previous
From: Michelle Konzack
Date:
Subject: Equivalent for AUTOINCREMENT?
Next
From: Alvaro Herrera
Date:
Subject: Re: Are there plans to add data compression feature to postgresql?