Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group