Re: Opinion about macro for the uuid datatype. - Mailing list pgsql-hackers

From Gevik Babakhani
Subject Re: Opinion about macro for the uuid datatype.
Date
Msg-id 1158583164.22703.4.camel@voyager.truesoftware.net
Whole thread Raw
In response to Re: Opinion about macro for the uuid datatype.  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Mon, 2006-09-18 at 14:23 +0200, Peter Eisentraut wrote:
> Am Montag, 18. September 2006 13:50 schrieb Gevik Babakhani:
> > It was
> 
> My question was, "Could you do this using a domain?".  The possible answers to 
> that are "Yes" and "No", neither of which appears below, nor does "domain".

"I don't know" could have been also a possible answer ;)

But yes, It is perfectly possible to do that using a domain:

something like:

CREATE DOMAIN SERIAL_GUID uuid DEFAULT new_guid();

Regards,
Gevik.



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Unique index: update error
Next
From: Jim Nasby
Date:
Subject: Re: [pgsql-www] Developer's Wiki