Re: multiple sequence number for one column

From: David Johnston <polobo(at)yahoo(dot)com>
To: mirthcyy <mirthcyy(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: multiple sequence number for one column
Date: 2011-05-05 21:47:22
Message-ID: 077DA5F9-F783-4388-BF19-42E582DC89EE@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>
> Is there a good way to solve this issue?
>
> Thanks a lot
>

Yes, multiple actually.

.......

one db centric solution is to create a sequence for each customer id and then nextval that specific sequence when you need a new id.

Would need to know more about the number of customers and how often you expect to assign new IDs - to each - to recommend other possibilities.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Toby Corkindale 2011-05-06 01:50:13 SMART attributes for SSD (was: SSDD reliability)
Previous Message Greg Smith 2011-05-05 21:31:38 Re: Fwd: Re: SSDD reliability