From: | Jorge Godoy <jgodoy(at)gmail(dot)com> |
---|---|
To: | "chris smith" <dmagick(at)gmail(dot)com> |
Cc: | "Jorge Godoy" <jgodoy(at)gmail(dot)com>, "PostgreSQL General ML" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Best approach for a "gap-less" sequence |
Date: | 2006-08-12 13:44:14 |
Message-ID: | 87d5b6ax1t.fsf@ieee.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"chris smith" <dmagick(at)gmail(dot)com> writes:
> Why does it matter?
>
> I assume there is a reason you need it like this..
Of course there is. It is a project requirement and also a law requirement
that there's no unused number and that they be chronologically ordered as
well. This is also part of the documented procedure that existed in paper and
that got ISO 9001 certified (so a lot of money was spent here before). The
law requirement is the strongest reason, though.
After a number is assigned, it can't be changed, reused or have anything
"newer" in a 'previous' (numerically-wise) entry.
Concurrency is a problem since there might be a lot of people using it. I
wanted to see if there was something that could improve performance here or to
solve the problem in a better way without locking the table.
Thanks,
--
Jorge Godoy <jgodoy(at)gmail(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Sandeep Kumar Jakkaraju | 2006-08-12 13:48:41 | Re: Connection Object |
Previous Message | Harpreet Dhaliwal | 2006-08-12 13:43:15 | Re: Connection Object |