我想在 Ubuntu 13 上的 Postgresql 9.2 中使用 uuid。因此,当我尝试检查它是否可用时,我执行了以下操作:
select uuid_generate_v4() as one;
然后我得到了ERROR: function uuid_generate_v4() does not exist
接着我执行了CREATE EXTENSION "uuid-ossp";
ERROR: could not open extension control file "/usr/share/postgresql/9.2/extension/uuid-ossp.control": No such file or directory
那么,接下来我该做什么?
顺便说一下,SELECT * FROM pg_available_extensions;
只返回 plpsql (1.0)
。