Re: Random Unique Id - Mailing list pgsql-sql

From Craig Ringer
Subject Re: Random Unique Id
Date
Msg-id 4ADE4D0B.1020909@postnewspapers.com.au
Whole thread Raw
In response to Random Unique Id  (Nahuel Alejandro Ramos <nahuelon@gmail.com>)
List pgsql-sql
Nahuel Alejandro Ramos wrote:
> Hi all,
>   I was searching for a sequence (for serials) that let me use a random
> unique number ID on a Primary Key or a simple index.
>   I have not found a solution so I have done it by myself. I would like to
> share it so here it is:

Here's what I'm using:

http://wiki.postgresql.org/wiki/Pseudo_encrypt

thanks to the incredibly helpful folks on this list, in this case
particularly Daniel Verite.

--
Craig Ringer


pgsql-sql by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: Re: Random Unique Id
Next
From: sathiya psql
Date:
Subject: report generation from table.