How to generate uuid with PostgreSQL 8.4.4 on Ubuntu 10.04?
问题 I am running PostgreSQL 8.4.4 with Ubuntu 10.04. I am trying to generate uuid but can't find a way to do it. I do have the uuid-ossp.sql in /usr/share/postgresql/8.4/contrib/uuid-ossp.sql When I try this is what I get : postgres=# SELECT uuid_generate_v1(); ERROR: function uuid_generate_v1() does not exist LINE 1: SELECT uuid_generate_v1(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. Any idea ? 回答1: The stuff in contrib aren't run