Re: guid/uuid datatype - Mailing list pgsql-patches

From Gevik Babakhani
Subject Re: guid/uuid datatype
Date
Msg-id 1169294380.9447.10.camel@voyager.truesoftware.net
Whole thread Raw
In response to Re: guid/uuid datatype  (Magnus Hagander <magnus@hagander.net>)
Responses Re: guid/uuid datatype  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
>
> But does it really help if you don't have the generator?
>
> I don't use UUIDs much myself, but I think in all cases I've seen that
> use the uuid type in SQL Server they're also using the generator function.
> Those that just store UUIDs in the database often just uses varchar - in
> order to be more portable, I guess.
>

There could be many algorithms to generate a guid. I guess we will get
into a big debate on that, which is not much useful i guess (seeing the
posts last year).

In most cases I have seen the guid is generated by the client. In case
of M$ Sql is also can be generated on the server but, in our case we
generate the guids ourselves because with our algorithm we can trace the
guid back to where it exactly was originated. (app requirement)

One thing is for sure, having varchar to store guids ( varchar(32) ) is
not that efficient.

Regards,
Gevik.




pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: guid/uuid datatype
Next
From: Alvaro Herrera
Date:
Subject: Re: guid/uuid datatype