Re: database design questions - Mailing list pgsql-general

From Tomi NA
Subject Re: database design questions
Date
Msg-id d487eb8e0604030750t63444de4h5347ebf300fe312f@mail.gmail.com
Whole thread Raw
In response to database design questions  (Ottavio Campana <ottavio@campana.vi.it>)
Responses Re: database design questions
List pgsql-general


On 4/3/06, Ottavio Campana <ottavio@campana.vi.it> wrote:
 
3) faq 4.11.1 says

>    CREATE TABLE person (
>        id   SERIAL,
>        name TEXT
>    );
>
>is automatically translated into this:
>
>    CREATE SEQUENCE person_id_seq;
>    CREATE TABLE person (
>        id   INT4 NOT NULL DEFAULT nextval('person_id_seq'),
>        name TEXT
>    );

how can I do it with a INT8 instead of a INT4?

Thank you

Is there a reason not to write explicitly?

CREATE SEQUENCE person_id_seq;
CREATE TABLE person (
id   INT8 NOT NULL DEFAULT nextval('person_id_seq'),
name TEXT
);


Tomislav

pgsql-general by date:

Previous
From: Ottavio Campana
Date:
Subject: database design questions
Next
From: "William Leite Araújo"
Date:
Subject: Re: How to delete all operators