我的问题很简单.我知道UUID的概念,我想生成一个UUID来引用数据库中"存储"中的每个"项目".看起来很合理,对吧?
问题是以下行返回错误:
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.
我已经读了http://www.postgresql.org/docs/current/static/uuid-ossp.html页了
我在Ubuntu 10.04 x64上运行Postgres 8.4.