欢迎投稿

今日深度:

解决在postgressql中创建uuid函数失败问题,postgressqluuid

解决在postgressql中创建uuid函数失败问题,postgressqluuid


ERROR:  could not access file "$libdir/uuid-ossp"


<span style="font-family:Microsoft YaHei;">STATEMENT:  CREATE FUNCTION uuid_generate_v4() RETURNS uuid
	    LANGUAGE c STRICT
	    AS '$libdir/uuid-ossp', 'uuid_generate_v4';</span>

解决方法:

lib/postgresql 这个目录下,没有 uuid-ossp.so 这个文件。

我是从已有的其他的已经安装好的数据库中将这个文件放到lib目录下,即可;


或者

<span style="font-size:14px;">apt-get install postgresql-contrib  
</span>

 
然后再执行psql命令安装 uuid-ossp ,执行成功了

www.htsjk.Com true http://www.htsjk.com/postgresSQL/25001.html NewsArticle 解决在postgressql中创建uuid函数失败问题,postgressqluuid ERROR:  could not access file "$libdir/uuid-ossp" span style="font-family:Microsoft YaHei;"STATEMENT: CREATE FUNCTION uuid_generate_v4() RETURNS uuid LANGUAGE c STRICT A...
相关文章
    暂无相关文章
评论暂时关闭