【发布时间】:2011-04-19 09:22:41
【问题描述】:
我在 Ubuntu 10.04 上运行 PostgreSQL 8.4.4。
我正在尝试生成 uuid,但找不到方法。
/usr/share/postgresql/8.4/contrib/uuid-ossp.sql 中确实有 uuid-ossp.sql
当我尝试这就是我得到的:
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.
有什么想法吗?
【问题讨论】:
标签: postgresql ubuntu uuid ubuntu-10.04