Re: [GENERAL] UUID datatype question

2009-07-13 Thread Alvaro Herrera
Tom Lane wrote: > (I believe that 8.3 takes braces too ... but it's pickier about where > it allows dashes.) This is what the 8.3 comment says: /* * We allow UUIDs in three input formats: 8x-4x-4x-4x-12x, * {8x-4x-4x-4x-12x}, and 32x, where "nx" means n hexadecimal digits * (only the first fo

Re: [GENERAL] UUID datatype question

2009-07-13 Thread David Kerr
On Mon, Jul 13, 2009 at 03:28:09PM -0400, Tom Lane wrote: - David Kerr writes: - > Tried w/o escaping: - > insert into testuuid values ('{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); - > ERROR: invalid input syntax for uuid: "{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}" - - Works for me: - - regression=#

Re: [GENERAL] UUID datatype question

2009-07-13 Thread Tom Lane
David Kerr writes: > Tried w/o escaping: > insert into testuuid values ('{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); > ERROR: invalid input syntax for uuid: "{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}" Works for me: regression=# select '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'::uuid; uui

[GENERAL] UUID datatype question

2009-07-13 Thread David Kerr
In the docs for the uuid datatype it states: (http://www.postgresql.org/docs/8.4/static/datatype-uuid.html) PostgreSQL also accepts the following alternative forms for input: use of upper-case digits, the standard format surrounded by braces, omitting some or all hyphens, adding a hyphen after an