vDB PostgreSQL - Các extension được hỗ trợ
PostgreSQL nổi tiếng với tính linh hoạt. Bạn hoàn toàn có thể mở rộng các core-function của PostgreSQL bằng các Extensions.
Mặc định, khi khởi tạo một database với vDB PostgreSQL, bạn đã được bật sẵn một số extension (danh sách bên dưới), ngoài ra bạn cũng có thể chủ động bật thêm một số extension khác tùy theo nhu cầu.
vDB PostgreSQL hỗ trợ hai loại deployment: Standalone (Single Node) và Cluster (1 Writer + N Readers). Danh sách extension được hỗ trợ có thể khác nhau tùy theo loại deployment.
1. Danh sách các extension được bật sẵn
Đối với PostgreSQL, các database được tạo mới sẽ được bật sẵn các Extension như trong database template1.
Sau khi tạo database, bạn có thể dùng lệnh:
\dxhoặc
select * from pg_extension;để xem danh sách các extension đã được bật trên database.
Dưới đây là danh sách các extension đã được bật sẵn:
1
plpgsql
PL/pgSQL procedural language
✅
✅
2
btree_gin
Support for indexing common datatypes in GIN
✅
✅
3
btree_gist
Support for indexing common datatypes in GiST
✅
✅
4
citext
Data type for case-insensitive character strings
✅
✅
5
cube
Data type for multidimensional cubes
✅
✅
6
dict_int
Text search dictionary template for integers
✅
✅
7
dict_xsyn
Text search dictionary template for extended synonym processing
✅
✅
8
hstore
Data type for storing sets of (key, value) pairs
✅
✅
9
isn
Data types for international product numbering standards
✅
✅
10
lo
Large Object maintenance
✅
✅
11
ltree
Data type for hierarchical tree-like structures
✅
✅
12
pg_trgm
Text similarity measurement and index searching based on trigrams
✅
✅
13
postgis
PostGIS geometry, geography, and raster spatial types and functions
✅
✅
14
postgres_fdw
Foreign-data wrapper for remote PostgreSQL servers
✅
✅
15
unaccent
Text search dictionary that removes accents
✅
✅
16
vector
Vector data type and ivfflat and hnsw access methods
✅
✅
17
chkpass
Data type for auto-encrypted passwords
✅
❌
Lưu ý: Nếu bạn muốn tạo database trắng hoàn toàn, hãy dùng template0.
2. Danh sách các extension bạn có thể tự bật
Bạn có thể tự bật một Extension bằng cách chạy lệnh:
2.1. Extension dùng chung (Standalone & Cluster)
earthdistance
Calculate great-circle distances on the surface of the Earth
fuzzystrmatch
Determine similarities and distance between strings
pg_stat_statements
Track execution statistics of all SQL statements executed
pgcrypto
Cryptographic functions
postgis_topology
PostGIS topology spatial types and functions
tablefunc
Functions that manipulate whole tables, including crosstab
uuid-ossp
Generate universally unique identifiers (UUIDs)
2.2. Extension chỉ có trên Cluster
pg_cron
1.6
Job scheduler for PostgreSQL
timescaledb
2.24.0
Enables scalable inserts and complex queries for time-series data
postgis_raster
3.6.1
PostGIS raster types and functions
pgaudit
17.1
Auditing functionality
pg_partman
5.4.0
Manage partitioned tables (time/ID-based)
pg_repack
1.5.3
Reorganize tables with minimal locks
2.3. Extension chỉ có trên Standalone
address_standardizer
Used to parse an address into constituent elements for geocoding
address_standardizer_data_us
Address Standardizer US dataset example
amcheck
Functions for verifying relation integrity
autoinc
Functions for autoincrementing fields
insert_username
Functions for tracking who changed a table
intagg
Integer aggregator and enumerator (obsolete)
intarray
Functions, operators, and index support for 1-D arrays of integers
moddatetime
Functions for tracking last modification time
pageinspect
Inspect the contents of database pages at a low level
pg_buffercache
Examine the shared buffer cache
pg_freespacemap
Examine the free space map (FSM)
pg_prewarm
Prewarm relation data
pg_visibility
Examine the visibility map (VM) and page-level visibility info
pgrouting
pgRouting Extension
pgrowlocks
Show row-level locking information
pgstattuple
Show tuple-level statistics
postgis_sfcgal
PostGIS SFCGAL functions
postgis_tiger_geocoder
PostGIS tiger geocoder and reverse geocoder
refint
Functions for implementing referential integrity (obsolete)
sslinfo
Information about SSL certificates
tcn
Triggered change notifications
timetravel
Functions for implementing time travel
tsm_system_rows
TABLESAMPLE method which accepts number of rows as a limit
tsm_system_time
TABLESAMPLE method which accepts time in milliseconds as a limit
Bạn có thể dùng lệnh sau để kiểm tra danh sách các extension đang được hỗ trợ trên vDB của mình:
Nếu bạn cần extension nào chưa được hỗ trợ, vui lòng liên hệ với GreenNode Cloud Support để được hỗ trợ.
3. Lưu ý
Extension vector chỉ available cho các vDB khởi tạo từ 01/08/2024.
Để sử dụng trên các vDB đã khởi tạo trước đó, bạn vui lòng liên hệ GreenNode Cloud Support để được hỗ trợ enable.
Danh sách extension trên Cluster có thể được cập nhật thêm trong các phiên bản tiếp theo.
Last updated

