Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7E9D89FBF2C for ; Thu, 14 Jun 2007 10:25:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53321-04 for ; Thu, 14 Jun 2007 10:25:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 9BE2B9FBF29 for ; Thu, 14 Jun 2007 10:25:46 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id l5EDPfpF004533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 14 Jun 2007 07:25:44 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id l5EDPfog070387; Thu, 14 Jun 2007 07:25:41 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id l5EDPfTR070386; Thu, 14 Jun 2007 07:25:41 -0600 (MDT) (envelope-from mfuhr) Date: Thu, 14 Jun 2007 07:25:41 -0600 From: Michael Fuhr To: "Campbell, Lance" Cc: pgsql-sql@postgresql.org Subject: Re: Random Unique Integer Message-ID: <20070614132540.GA70344@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/108 X-Sequence-Number: 28598 On Thu, Jun 14, 2007 at 08:08:26AM -0500, Campbell, Lance wrote: > I have a table T1. It contains a field called F1. Is there a way for > me to set the table T1 up such that F1 can be populated with a random > integer such that F1 is a unique integer? What problem are you trying to solve? The solution might depend on what you're trying to do. -- Michael Fuhr