Re: uniqueidentifier datatype for 7.3.X - Mailing list pgsql-sql

From Tom Lane
Subject Re: uniqueidentifier datatype for 7.3.X
Date
Msg-id 22619.1036339690@sss.pgh.pa.us
Whole thread Raw
In response to uniqueidentifier datatype for 7.3.X  ("Dmitry G. Mastrukov" Дмитрий Геннадьевич Мастрюков <dmitry@taurussoft.org>)
Responses Re: uniqueidentifier datatype for 7.3.X  ("Dmitry G. Mastrukov" Дмитрий Геннадьевич Мастрюков <dmitry@taurussoft.org>)
List pgsql-sql
"Dmitry G. Mastrukov" Дмитрий Геннадьевич Мастрюков <dmitry@taurussoft.org> writes:
> In this release there is additional function uniqueidentifier_text()
> which converts uniqueidentifier to text datatype. Thanks to Hussein
> Patni!

You would be better off to name the conversion function text(uuid)
and declare it as a cast (possibly an explicit-only cast, depending on
whether you think automatic casting of uuid to text is a good idea).
Not following the standard naming convention for conversion functions
just creates an extra memory burden for users.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Alexander M. Pravking"
Date:
Subject: Re: Different size in the DATA directory
Next
From: Wei Weng
Date:
Subject: Re: [PERFORM] Does this matter?