Maurice Yarrow <yarrow@xxxxxxxx> writes: > Is there a formal way to set an initial value for a PRIMARY KEY > when CREATE TABLE ? If it's a SERIAL column, you use setval() on the underlying sequence before you start inserting data. regards, tom lane
Maurice Yarrow <yarrow@xxxxxxxx> writes: > Is there a formal way to set an initial value for a PRIMARY KEY > when CREATE TABLE ? If it's a SERIAL column, you use setval() on the underlying sequence before you start inserting data. regards, tom lane