アレッ*_*ックス 24 postgresql ubuntu ubuntu-13.04
我想在Ubuntu 13上的Postgresql 9.2中使用uuid.所以当我试图检查是否可用时,我做了:
select uuid_generate_v4() as one;
Run Code Online (Sandbox Code Playgroud)
它给了我 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
Run Code Online (Sandbox Code Playgroud)
那么,接下来我该怎么办?
顺便说一句,只SELECT * FROM pg_available_extensions;返回plpsql (1.0).
Pet*_*aut 36
未安装包含扩展的操作系统软件包.要安装它:
apt-get install postgresql-contrib-9.2
Run Code Online (Sandbox Code Playgroud)
use*_*584 13
对于使用asdf 版本管理器和asdf-postgres 插件的任何人,安装 postgres 版本如下可解决此问题:
POSTGRES_EXTRA_CONFIGURE_OPTIONS=--with-uuid=e2fs asdf install postgres <VERSION>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17110 次 |
| 最近记录: |