PostgreSQL
Posted _xk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PostgreSQL相关的知识,希望对你有一定的参考价值。
解析器:
查询已有解析器
postgres=# \\dFp
Refs:
- 解析器 -- 官方文档中文翻译
extensions(扩展):
查看数据库已安装的扩展:
postgres=# \\dx
# Output:
# Name | Version | Schema | Description
# ----------+---------+------------+---------------------------------------------------------------------
# plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
# postgis | 2.4.6 | public | PostGIS geometry, geography, and raster spatial types and functions
# zhparser | 2.1 | public | a parser for full-text search of Chinese
# (3 rows)
# 或者
postgres=# SELECT * FROM pg_extension;
# 输出跟上面有点 \\dx 有点不同.
查看数据库可安装的扩展:
postgres=# select * from pg_available_extensions;
# Output:
# name | default_version | installed_version | comment
# ------------------------------+-----------------+-------------------+---------------------------------------------------------------------------------------------------------------------
# refint | 1.0 | | functions for implementing referential integrity (obsolete)
# postgis | 2.4.6 | 2.4.6 | PostGIS geometry, geography, and raster spatial types and functions
Refs:
- Listing the extensions available in PostgreSQL
以上是关于PostgreSQL的主要内容,如果未能解决你的问题,请参考以下文章
Mac + virtualenv + pip + postgresql = 错误:找不到 pg_config 可执行文件