CREATE TABLE initial value for PRIMARY KEY - Mailing list pgsql-general

Hello Postgres community

Is there a formal way to set an initial value for a PRIMARY KEY
when CREATE TABLE ?  (This would be some large number,
typically.)

Or is it only possible to do this by first creating the table, and
then inserting a bogus record forcing the initial value by
specification (and then, presumably, deleting this bogus
record)  ?

Maurice Yarrow



pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Mailing list problem?
Next
From: "Dann Corbit"
Date:
Subject: Re: CREATE TABLE initial value for PRIMARY KEY