Re: Proposal for GUID datatype

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

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,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gevik Babakhani 2006-09-08 20:08:03 Re: Proposal for GUID datatype
Previous Message Bruce Momjian 2006-09-08 19:48:04 Re: Fixed length data types issue