Re: (psuedo) random serial for PK or at least UNIQUE NOT NULL?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: (psuedo) random serial for PK or at least UNIQUE NOT NULL?
Дата
Msg-id 20100504174825.GB3565@alvh.no-ip.org
обсуждение исходный текст
Ответ на (psuedo) random serial for PK or at least UNIQUE NOT NULL?  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Ответы Re: (psuedo) random serial for PK or at least UNIQUE NOT NULL?  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Список pgsql-general
Vincenzo Romano wrote:
> Hi all.
>
> I'm willing to change an BIGINT ID column (actually a SERIAL8) with a
> BIGINT whose valules are (pseudo)random.
> The main objective is to avoid guessability.
> I whish I could also use it as the PK (as it's now) but that's not
> really important now.
> Any hint?

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

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: Marc Schablewski
Дата:
Сообщение: Re: PG & random() strangeness
Следующее
От: sunpeng
Дата:
Сообщение: why there are two TargetEntrys in Query when i use "select count(catcode) from pois group by catcode"?