加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何在PostgreSQL 9.1中导入模块或安装扩展?

发布时间:2020-12-13 16:53:12 所属栏目:百科 来源:网络整理
导读:首先,如果你不使用9.1,请 refer to this question。 如何安装一个扩展到PostgreSQL 9.1? Postgrseql 9.1提供了一个新的命令 CREATE EXTENSION .您应该使用它来安装模块。 Modules provided in 9.1 can be found here..包括, adminpack,auth_delay,auto_e
首先,如果你不使用9.1,请 refer to this question。

如何安装一个扩展到PostgreSQL 9.1?

Postgrseql 9.1提供了一个新的命令 CREATE EXTENSION.您应该使用它来安装模块。

Modules provided in 9.1 can be found here..包括,

adminpack,auth_delay,auto_explain,btree_gin,btree_gist,chkpass,citext,cube,dblink,dict_int,dict_xsyn,dummy_seclabel,earthdistance,file_fdw,fuzzystrmatch,hstore,intagg,intarray,isn,lo,ltree,oid2name,pageinspect,passwordcheck,pg_archivecleanup,pgbench,pg_buffercache,pgcrypto,pg_freespacemap,pgrowlocks,pg_standby,pg_stat_statements,pgstattuple,pg_test_fsync,pg_trgm,pg_upgrade,seg,sepgsql,spi,sslinfo,tablefunc,test_parser,tsearch2,unaccent,uuid-ossp,vacuumlo,xml2

如果例如你想安装earthdistance,只需使用这个命令:

CREATE EXTENSION earthdistance;

如果你想安装一个带有连字符的扩展名,例如uuid-ossp,你需要用双引号括起扩展名:

CREATE EXTENSION "uuid-ossp";

> Read more about contrib,and the modules available in 9.1。
> Read about the new extension infrastructure,and the SQL commands to manage it here现在可以更轻松地卸载模块,请参见DROP EXTENSION。您还可以获取扩展列表,并且有版本号的基本支持。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读