Re: UUID as primary key

Поиск
Список
Период
Сортировка
От Vance Maverick
Тема Re: UUID as primary key
Дата
Msg-id 1156258166.22672.6.camel@vmaverick-linux2.pgp.com
обсуждение исходный текст
Ответ на UUID as primary key  (Vance Maverick <vmaverick@pgp.com>)
Ответы Re: UUID as primary key
Список pgsql-general
Thanks for the good suggestion.  I spent some time last night verifying
that it works, and that I can get the values in and out correctly
through JDBC.  (When going from Java to the database, for example, it's
easiest to compose the value directly into the SQL query rather than
using a parameter.)  This seems quite viable.

    Vance

On Tue, 2006-08-22 at 08:44 +0200, Harald Armin Massa wrote:
> Vance,
>
> I use UUID as PK/FK within a rather complex application. To store it I
> use the type INET, which fits quite well.
>
> Compared to sequences I know of some disadvantages:
> - theoretical: keys are less locally distributed
> - bigger keys = more memory usage
> - manually editing of tables is difficult, just because the keys are
> more difficult to compare visually
>
> Harald
>
> --
> GHUM Harald Massa
> persuadere et programmare
> Harald Armin Massa
> Reinsburgstraße 202b
> 70197 Stuttgart
> 0173/9409607
> -
> Let's set so double the killer delete select all.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Queries joining views
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Queries joining views