Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Reuse seria...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3050 of 3255
Post > Topic >>

Re: Reuse serial numbers?

by gentosaker@[EMAIL PROTECTED] ("A B") Mar 27, 2008 at 10:17 AM

Oh, I just thought of having a boolean field for indicating usage...I
don't know if it will be more efficient. But as a novice... I think
that will be sufficient.

2008/3/27, Emil Obermayr <nobs@[EMAIL PROTECTED]
>:
> On Thu, Mar 27, 2008 at 10:49:06AM +0100, A. Kretschmer wrote:
>  >
>  > Why do you think you need the numbers?
>
>
> A typical application for low numbers (not letting them increase over
>  time) is the "human readabilitly" if you need them outside the DB as
>  labels on boxes for "real life transactions".
>
>  One solution is writing a function using a self join on the column
>  on a.n + 1 = b.n searching for NULL results; then returning the a.n+1.
>
>  I have this somewhere in the jungle of my source code snippets. Tell me
>  if you need me searching for it :)
>
>
>  Emil
>
>
>
>  --
>  Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
>  To make changes to your subscription:
>  http://www.postgresql.org/mailpref/pgsql-novice
>

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 3 Posts in Topic:
Reuse serial numbers?
gentosaker@[EMAIL PROTECT  2008-03-27 09:36:57 
Re: Reuse serial numbers?
andreas.kretschmer@[EMAIL  2008-03-27 10:49:06 
Re: Reuse serial numbers?
gentosaker@[EMAIL PROTECT  2008-03-27 10:17:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:23:36 CDT 2008.