Re: UUID datatype question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UUID datatype question
Дата
Msg-id 28481.1247513289@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UUID datatype question  (David Kerr <dmk@mr-paradox.net>)
Ответы Re: UUID datatype question
Re: UUID datatype question
Список pgsql-general
David Kerr <dmk@mr-paradox.net> 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;
                 uuid
--------------------------------------
 a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
(1 row)

I wonder whether you are reading the 8.4 docs for an 8.3 installation?

(I believe that 8.3 takes braces too ... but it's pickier about where
it allows dashes.)

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: David Kerr
Дата:
Сообщение: UUID datatype question
Следующее
От: Sam Mason
Дата:
Сообщение: Re: pg_dump of a big table