Re: Proposal for GUID datatype - Mailing list pgsql-hackers

From Gevik Babakhani
Subject Re: Proposal for GUID datatype
Date
Msg-id 4501CDA3.2050003@xs4all.nl
Whole thread Raw
In response to Proposal for GUID datatype  (Gevik Babakhani <pgdev@xs4all.nl>)
List 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.


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Fixed length data types issue
Next
From: Tom Lane
Date:
Subject: Re: Proposal for GUID datatype