Re: patch: Allow the UUID type to accept non-standard formats

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Dawid Kuroczko <qnex42(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Mark Mielke <mark(at)mark(dot)mielke(dot)cc>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: patch: Allow the UUID type to accept non-standard formats
Date: 2008-10-14 16:08:54
Message-ID: 48F4C416.3000103@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dawid Kuroczko wrote:
>> 2) The '-' is not the only character that people have used. ClearCase uses
>> '.' and ':' as punctuation.
>
> I would be more in favor of accepting MAC-address style notation AA:BB:CC:DD
> also, in that case, but I think its going too far... So, I am for sticking with
> dashes and groups of four :)

Well, speaking of MAC addresses, we already accept a finite set of
non-standard MAC address formats, so doing something similar with UUID
should be OK.

I recently figured out that the AA:BB:CC:DD... format for MAC addresses
is not exactly standard either, so sticking with the standard doesn't
always help in practice.

We only accept those MAC address formats that we find in practice,
however, not any combination of digits and delimiters, and I think UUID
should do the same as well.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2008-10-14 16:09:27 Re: There's some sort of race condition with the new FSM stuff
Previous Message Peter Eisentraut 2008-10-14 15:57:07 Re: autovacuum and reloptions