X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7B66F32A12A for ; Wed, 20 Oct 2004 19:30:02 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62669-07 for ; Wed, 20 Oct 2004 18:29:54 +0000 (GMT) Received: from smtp102.rog.mail.re2.yahoo.com (smtp102.rog.mail.re2.yahoo.com [206.190.36.80]) by svr1.postgresql.org (Postfix) with SMTP id 2946F32A155 for ; Wed, 20 Oct 2004 19:29:53 +0100 (BST) Received: from unknown (HELO phlogiston.dydns.org) (a.sullivan@rogers.com@65.49.125.184 with login) by smtp102.rog.mail.re2.yahoo.com with SMTP; 20 Oct 2004 18:29:52 -0000 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 6CD414053; Wed, 20 Oct 2004 14:29:51 -0400 (EDT) Date: Wed, 20 Oct 2004 14:29:51 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: Sequence question Message-ID: <20041020182951.GE8721@phlogiston.dyndns.org> Mail-Followup-To: pgsql-general@postgresql.org References: <3sydnUgMwqQ80-ncRVn-uA@speakeasy.net> <1098286552.21062.333.camel@sabrina.peacock.de> <4176A5FB.5090708@bonbon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4176A5FB.5090708@bonbon.net> User-Agent: Mutt/1.5.6+20040722i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/926 X-Sequence-Number: 67449 On Wed, Oct 20, 2004 at 01:52:59PM -0400, Eric E wrote: > One thought I had, and I'd love to hear what people think of this, is to > build a table of storage location numbers that are available for use. > That way the search for new numbers could be pushed off until some > convenient moment well after the user requests them. That very application is how I heard the idea for the "second method" I sent in another email. In the case I was thinking of, someone used it for room allocation. It worked pretty well, as long as you can tolerate occasional periods where you _do_ have gaps. A -- Andrew Sullivan | ajs@crankycanuck.ca In the future this spectacle of the middle classes shocking the avant- garde will probably become the textbook definition of Postmodernism. --Brad Holland