Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id CAAA6476DF1 for ; Thu, 2 May 2002 11:57:56 -0400 (EDT) Received: from wolff.to (wolff.to [66.92.219.49]) by postgresql.org (Postfix) with SMTP id 857E4476673 for ; Thu, 2 May 2002 11:31:23 -0400 (EDT) Received: (qmail 26929 invoked by uid 500); 2 May 2002 15:34:19 -0000 Date: Thu, 2 May 2002 10:34:19 -0500 From: Bruno Wolff III To: Jean-Michel POURE Cc: postgres@vrane.com, pgsql-general@postgresql.org Subject: Re: HOWTO - Random character generation for primary key Message-ID: <20020502153419.GA26741@wolff.to> Mail-Followup-To: Jean-Michel POURE , postgres@vrane.com, pgsql-general@postgresql.org References: <20020502020148.35486.qmail@web21203.mail.yahoo.com> <200205021158.53937.jm.poure@freesurf.fr> <20020502061317.A4832@amd.universe> <200205021301.22897.jm.poure@freesurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205021301.22897.jm.poure@freesurf.fr> User-Agent: Mutt/1.3.25i X-Archive-Number: 200205/71 X-Sequence-Number: 24051 On Thu, May 02, 2002 at 01:01:22PM +0200, Jean-Michel POURE wrote: > > A timestamp (ex: 20020501_1258) followed by PLpgSQL function > random_string(200) value should provide a unique signature. What do you > think? Alternatively, could we use the crypto package to generate a unique > signature? Well what are you really trying to do? Presumably you have some reason(s) for not wanting to use sequences, but without knowing what the reason(s) are it is hard to give you good advice.