From Source

必备条件

  • A standard ​PostgreSQL 9.6​ installation with development environment (header files) (e.g., postgresql-server-dev-9.6 package for Linux, ​Postgres.app​ for MacOS)
  • 一个标准的​PostgreSQL 9.6​安装开发环境(头文件)(例如, postgresql-server-dev-9.6 package for Linux, ​Postgres.app​ for MacOS)

Build & Install with Local PostgreSQL

Clone the repository from ​Github​. It is ​highly recommended​ that you then checkout the latest tagged commit to build from (see the repo's ​Releases​ page for that).

克隆​​GitHub库。强烈建议checkout最新的标记的commit(请参阅该仓库的releases页面)。

# Clone and checkout latest stable build
git clone https://github.com/timescale/timescaledb.git
cd timescaledb
git checkout [latest tag]

# To build the extension
make

# To install
make install

更新​postgresql.conf​

Also, you will need to edit your ​postgresql.conf​ file to include necessary libraries, and then restart PostgreSQL.

此外,你需要编辑​postgresql.conf​文件增加必要的库,然后重启PostgreSQL.

# First, locate your postgresql.conf file
# 第一步,定位postgresql.conf文件
psql -d postgres -c "SHOW config_file;"

Then modify ​postgresql.conf​ to add required libraries. Note that the ​shared_preload_libraries​ line is commented out by default. Make sure to uncomment it when adding our library.

接下来,修改postgresql.conf​文件增加需要的库。请注意​shared_preload_libraries​行默认是带注释的。添加库时请确保去掉该行注释。

shared_preload_libraries = 'timescaledb'

Then, restart the PostgreSQL instance.

重启PostgreSQL实例。

​Next we will ​setup the database​, either with an empty hypertable, or by migrating data from another source​

接下来,设置数据库,可以使用一个空的hypertable,也可以从另一个数据库中迁移数据。

局限性

For a list of currently known limitations, please see our Github page:

局限性详见Github

  • ​Github issues​

results matching ""

    No results matching ""