以自帶的外掛程式,bloom外掛程式為例
之前裝過了,現在嘗試刪除
postgres=# drop extension bloom;
psql: error: cannot drop extension bloom because other objects depend on it
detail: index idxbloom_t2 depends on operator class int4_ops for access method bloom
index idx_t1 depends on operator class int4_ops for access method bloom
hint: use drop … cascade to drop the dependent objects too.
以上說明bloom被引用了,可用用cascade的模式刪除
postgres=# drop extension bloom cascade;
psql: notice: drop cascades to 2 other objects
detail: drop cascades to index idxbloom_t2
drop cascades to index idx_t1
drop extension
接下來安裝比較簡單
postgres=# create extension
adminpack btree_gist dict_xsyn hstore isn pageinspect pg_prewarm pg_visibility tablefunc unaccent
amcheck citext earthdistance insert_username lo pg_buffercache pgrowlocks postgres_fdw tcn
autoinc cube file_fdw intagg ltree pgcrypto pg_stat_statements refint tsm_system_rows
btree_gin dict_int fuzzystrmatch intarray moddatetime pg_freespacemap pgstattuple seg tsm_system_time
直接create extension bloom即可
postgres=# create extension bloom;
create extension
可以查詢當前用了哪些外掛程式
postgres-# \dx
list of installed extensions
name|version|schema|description
bloom|1.0|public|bloom access method - signature file based index
dblink|1.2|public|connect to other postgresql databases from within a database
pg_trgm|1.4|public|text similarity measurement and index searching based on trigrams
plpgsql|1.0|pg_catalog|pl/pgsql procedural language
(4 rows)
vim外掛程式安裝 如何安裝Vim外掛程式
vim外掛程式安裝 儘管vim快速高效,但預設情況下,它只是乙個文字編輯器。至少,這就是沒有外掛程式的情況,外掛程式基於vim並新增了額外的功能,使其不僅具有鍵入文字的視窗,還具有更多的功能。正確搭配各種外掛程式,您可以掌控自己的生活,並打造自己獨特的vim體驗。您可以自定義主題 還可以新增語法突出...
如何安裝VIM外掛程式
how to install vim plugin?1 download plugin with zip packet.vim scripts 2 unzip plug in packet usually we can get 4 folder doc txt,cnx usually for chi...
Sublime Text如何安裝外掛程式
首先是要安裝外掛程式管理器,關於安裝方法,作者在 上已經說的很詳細了,一 簡單安裝方式 1 按快捷鍵ctrl esc鍵的下一行鍵的第乙個 或從選單view show console 檢視 控制面板 中開啟。2 sublime text 2中複製以下 回車執行 import urllib2,os pf...