Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3GDGEu15892 for ; Mon, 16 Apr 2001 09:16:14 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3G1tPu66050 for ; Sun, 15 Apr 2001 21:55:25 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f3G1rQK15704 for pgsql-sql@postgresql.org; Sun, 15 Apr 2001 21:53:26 -0400 (EDT) (envelope-from news) From: "Bernardo de Barros Franco" X-Newsgroups: comp.databases.postgresql.sql Subject: Using Random Sequence as Key Date: Sun, 15 Apr 2001 22:58:40 -0300 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 13 Message-ID: <9bdjag$faj$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: pgsql-sql@postgresql.org X-Archive-Number: 200104/246 X-Sequence-Number: 2596 Hello, I was wondering if noone can help me maybe someone could at least give me some directions where to look for info or where to ask: I wanted to index a table by a random key. Exemplifying, when a insert is made, the id value is automatically filled with a random number between 10000 and 99999. I'm pretty new in pgsql so I could use a howto or something, and I repeat, if you don't know how, directions to where I can find info on that or where I can ask someone that might know would be enough. Thank you