Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A40CE9FA4C5 for ; Tue, 17 Jul 2007 12:00:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 10468-03 for ; Tue, 17 Jul 2007 12:00:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 2E93B9FA238 for ; Tue, 17 Jul 2007 12:00:51 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1IAoXj-0007Cp-HB for pgsql-sql@postgresql.org; Tue, 17 Jul 2007 11:00:51 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 1B6384050; Tue, 17 Jul 2007 11:00:46 -0400 (EDT) Date: Tue, 17 Jul 2007 11:00:46 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: data dependent sequences? Message-ID: <20070717150046.GC21688@phlogiston.dyndns.org> References: <1184515497.5778.141.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/101 X-Sequence-Number: 28836 On Tue, Jul 17, 2007 at 07:34:26AM -0600, Stuart wrote: > I am not looking for gapless sequences. The reason I > want to do this is the "typ" column is actually an indicator > of the source of the rest of the infomation in the row. Why do you need the sequence to be 1. . .n for each typ, then? If they're just there to preserve order, one sequence will work just fine. Otherwise, I think you have a normalisation problem. A -- Andrew Sullivan | ajs@crankycanuck.ca A certain description of men are for getting out of debt, yet are against all taxes for raising money to pay it off. --Alexander Hamilton