Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly - Mailing list pgsql-sql

From Andrew Sullivan
Subject Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly
Date
Msg-id 20060524112717.GC31756@phlogiston.dyndns.org
Whole thread Raw
In response to PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly  ("andi" <andi@mobile-elab.com>)
List 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@crankycanuck.ca
The fact that technology doesn't work is no bar to success in the marketplace.    --Philip Greenspun


pgsql-sql by date:

Previous
From: "andi"
Date:
Subject: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly
Next
From: "Franco Bruno Borghesi"
Date:
Subject: Re: PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly