X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3D61CD1BB74 for ; Wed, 17 Dec 2003 01:14:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 41651-05 for ; Tue, 16 Dec 2003 21:14:17 -0400 (AST) Received: from digitalflex.digitalflex.net (digitalflex.digitalflex.net [166.70.78.147]) by svr1.postgresql.org (Postfix) with ESMTP id 0B838D1B8DF for ; Tue, 16 Dec 2003 21:14:13 -0400 (AST) Received: from digitalflex.net (63-226-109-112.slkc.qwest.net [63.226.109.112]) (authenticated bits=0) by digitalflex.digitalflex.net (8.12.3/8.12.3/Debian-6.6) with ESMTP id hBH1E928005003 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 16 Dec 2003 18:14:10 -0700 Message-ID: <3FDFAD8F.5080404@digitalflex.net> Date: Tue, 16 Dec 2003 18:12:47 -0700 From: Anthony Best User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Sequence question. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/923 X-Sequence-Number: 54316 I'm working on an idea that uses sequences. I'm going to create a table like this: id serial, sequence int, keyword varchar(32), text text for every keyword there will be a uniq sequence for it eg: id, sequence, keyword 1, 1, foo, ver1 2, 1, bar, bar ver1 3, 2, foo, ver2 4, 2, bar, bar ver2 etc... I could have one sequence for all keyword which would be 1,3, etc... I would be prefer to have them in sequence. I'm sure someone has ran into this before, any ideas? Anthony.