Re: BUG #4274: uuid returns duplicate values

From: tomas(at)tuxteam(dot)de
To: "Eric P(dot) Melbardis" <eric(dot)melbardis(at)netkitsolutions(dot)com>
Cc: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>, Bruce Momjian <bruce(at)momjian(dot)us>, Nicolas ANTONINI <nicolas(dot)antonini(at)mnm-consulting(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4274: uuid returns duplicate values
Date: 2008-08-24 08:18:04
Message-ID: 20080824081804.GA26927@tomas
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Aug 23, 2008 at 10:07:58AM -0700, Eric P. Melbardis wrote:
> Hi
>
> Testing on my home system, looking good... will try on my office system Monday.
>
> Note:
> I am assuming that the uuid will mostly be used as a primary
> key on records that will exist in replicated databases to guarantee
> uniqueness. The problem that is see with the current uuid functions
> for this purpose is that the generated uuid is very random causing
> great performance issues with the index [...]
> Hence the older style of uuid, based on mac
> addresses and time tend to generate more sequential uuid's,
> at least when inserting a bunch of records at once.
>
> In other words it would be nice to have the old fashioned style of uuid's.

Note that in the days of virtual machines, those more or less "invent"
their MACs. Since they just have to be unique in the subnet (or
"broadcast domain"), collisions on a more global scale will go
unnoticed. But they might bite you in a replicated database scenario.

I wouldn't trust "old fashioned uuids" anymore.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIsRk8Bcgs9XrR2kYRAkX6AJ9EoGka6NZ8dGijynYr/ujogStqfgCdEhU6
b1yyo+YNpmeqJ2IRMqowMHE=
=iZHA
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Harald Armin Massa 2008-08-24 08:43:37 Re: BUG #4274: uuid returns duplicate values
Previous Message Richard Evans 2008-08-23 20:46:54 Re: BUG #3818: Cross compilation problems