Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly
Date: 2006-05-24 11:27:17
Message-ID: 20060524112717.GC31756@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, May 24, 2006 at 05:35:10PM +0700, andi wrote:
>
> But my primary key is not in correct order like

What does this mean? Is the key being generated by a sequence (i.e.
is the column DEFAULT nextval('some_sequence'))? If so, the primary
key will be assigned in COMMIT order. Note that the sequence does
not guarantee no gaps, however.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
The fact that technology doesn't work is no bar to success in the marketplace.
--Philip Greenspun

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Franco Bruno Borghesi 2006-05-24 13:04:20 Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly
Previous Message andi 2006-05-24 10:35:10 PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly