Re: nextval on insert by arbitrary sequence - Mailing list pgsql-sql

From Dado Feigenblatt
Subject Re: nextval on insert by arbitrary sequence
Date
Msg-id 3B58C71F.9070703@wildbrain.com
Whole thread Raw
In response to Re: nextval on insert by arbitrary sequence  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: nextval on insert by arbitrary sequence
List pgsql-sql
Josh Berkus wrote:

> Dado,
>
> Maybe we're looking at this the hard way.  Have you thought of simply
> putting in a DATETIME column and sorting by that?
>
> -Josh
>
Sorting? I might have expressed myself wrong.
I'm not concerned about sorting.
I'm concerned about giving rows in a single table an unique, sequential 
numbered ID
based on a sequence per project (as in a serial counter, as in 'create 
sequence specific_project_sequence;')
e.g.
rows related to project A get a number from sequence A
rows related to project B get a number from sequence B

Is it clear now, or is it me who's not understanding what you're saying?

Sorry for the confusion.





-- 
Dado Feigenblatt                                 Wild Brain, Inc.   
Technical Director                               (415) 553-8000 x???
dado@wildbrain.com                               San Francisco, CA.






pgsql-sql by date:

Previous
From: Dado Feigenblatt
Date:
Subject: Re: PLpgSQL
Next
From: David Stanaway
Date:
Subject: Re: nextval on insert by arbitrary sequence