Re: CREATE TABLE initial value for PRIMARY KEY

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: Maurice Yarrow <yarrow(at)best(dot)com>
Cc: General PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: CREATE TABLE initial value for PRIMARY KEY
Date: 2006-10-30 18:59:54
Message-ID: FEA2F973-B33B-4B62-A35A-F03B8A45BFB6@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Maurice Yarrow wrote:

> So it turned out to be possible to do it like this:
>
> CREATE SEQUENCE id_seq;
> SELECT setval('id_seq',100111);

FYI, you could have done this:

CREATE SEQUENCE id_seq START 100111;

- John D. Burger
MITRE

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ecolgan 2006-10-30 19:46:01 Timeout Value on network error
Previous Message Taras Kopets 2006-10-30 17:45:29 Re: WAL Archiving under Windows