Re: Proposal for GUID datatype

From: Gevik Babakhani <pgdev(at)xs4all(dot)nl>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal for GUID datatype
Date: 2006-09-08 20:08:03
Message-ID: 4501CDA3.2050003@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout wrote:
> Just a few comments,
>
> On Fri, Sep 08, 2006 at 09:18:20PM +0200, Gevik Babakhani wrote:
>
>> 5) support functions:
>> because uuid could also be used as PK or unique values, additional
>> function(s) will be available to produce a uuid value to be used in
>> a field's default value like sequences or PL/pgSQL etc.. etc...
>>
>> example;
>>
>> create table tbl(
>> ID uuid default ('new_uuid()'),
>> ....
>> );
>>
>
> That would be: ID uuid default new_uuid();
>
>
>> typstorage = m // stored compressed inline
>>
>
> Compression is not going to work on such short values, the header will
> almost longer, just use 'p' like every other fixed length type.
>
> Have a nice day,
>
Point taken, thank you.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-09-08 20:17:40 Re: Proposal for GUID datatype
Previous Message Martijn van Oosterhout 2006-09-08 20:01:19 Re: Proposal for GUID datatype