Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x - Mailing list pgsql-hackers

From Tom Lane
Subject Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x
Date
Msg-id 21410.1204257413@sss.pgh.pa.us
Whole thread Raw
In response to Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x  (Andrew Sullivan <ajs@crankycanuck.ca>)
Responses Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x
List pgsql-hackers
Andrew Sullivan <ajs@crankycanuck.ca> writes:
> "Be conservative in what you send, and liberal in what you accept."

Yeah, I was about to quote that same maxim myself.  I don't have a big
problem with allowing uuid_in to accept known format variants.  (I'm
not sure about allowing a hyphen *anywhere*, because that could lead to
accepting things that weren't meant to be a UUID at all, but this HP
format seems regular enough that that's not a serious objection to it.)

What I was really complaining about was Josh's suggestion that we invent
a function to let users *output* UUIDs in random-format-of-the-week.
I can't imagine much good coming of that.  I think we should keep
uuid_out emitting only the RFC-standardized format.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE TABLE, load and freezing
Next
From: Tom Lane
Date:
Subject: Re: OSSP can be used in the windows environment now!