diff's between creations of tables - Mailing list pgsql-general

From G.L. Grobe
Subject diff's between creations of tables
Date
Msg-id 000b01c11595$70c05d90$0200a8c0@trinity
Whole thread Raw
Responses Re: diff's between creations of tables  ("Dr. Evil" <drevil@sidereal.kz>)
Re: diff's between creations of tables  (Joel Burton <jburton@scw.org>)
List pgsql-general
When creating an incremental and unique id, what are the benefits of using:

CREATE TABLE tablename (colname SERIAL);

instead of :

CREATE SEQUENCE tablename_colname_seq;
CREATE TABLE tablename
    (colname integer DEFAULT nextval('tablename_colname_seq');
CREATE UNIQUE INDEX tablename_colname_key on tablename (colname);

One is easier do delete as a dropdb dbname would do it, but anything else I
should know. Or which one is the general practice, any rules of thumb to
use, etc...



pgsql-general by date:

Previous
From: "Dr. Evil"
Date:
Subject: Good random numbers in PG? And crypto-wishlist
Next
From: "Dr. Evil"
Date:
Subject: Re: diff's between creations of tables