[postmodern-devel] id field

Marijn Haverbeke marijnh at gmail.com
Mon Jan 24 14:14:56 UTC 2011


> Then I don't need primary key ?

(Read up on what primary keys really do.)

> If I choose my primary key to be an integer
> then I have to keep track of numbers and automatically
> insert number incremented by one ?

No, Postgres supports automatically assigned IDs as well, but you have
to specify them. Look into the serial datatype, and default column
values.




More information about the postmodern-devel mailing list