Generowanie identyfikatora UUID w Postgres dla instrukcji Insert?

Moje pytanie jest raczej proste. Jestem świadomy koncepcji UUID i chcę wygenerować taki, który będzie odnosił się do każdego „elementu” z „sklepu” w moim DB z. Wydaje się rozsądne, prawda?

Problem polega na tym, że następujący wiersz zwraca błąd:

honeydb=# insert into items values(
uuid_generate_v4(), 54.321, 31, 'desc 1', 31.94);
ERROR:  function uuid_generate_v4() does not exist
LINE 2: uuid_generate_v4(), 54.321, 31, 'desc 1', 31.94);
        ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

Przeczytałem stronę pod adresem:http://www.postgresql.org/docs/current/static/uuid-ossp.html

Używam Postgres 8.4 na Ubuntu 10.04 x64.

questionAnswers(5)

yourAnswerToTheQuestion