¿Generando un UUID en Postgres para insertar declaración?
Mi pregunta es bastante simple. Soy consciente del concepto de un UUID y quiero generar uno para referirme a cada "elemento" de una "tienda" en mi DB con. Parece razonable ¿no?
El problema es que la siguiente línea devuelve un error:
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.
He leído la página en:http://www.postgresql.org/docs/current/static/uuid-ossp.html
Estoy ejecutando Postgres 8.4 en Ubuntu 10.04 x64.