Homebrew

This will install both TimescaleDB ​AND​ PostgreSQL 9.6 via Homebrew.

通过Homebrew安装TimescaleDB和PostgreSQL 9.6

必备条件

Homebrew

Build & Install

WARNING:If you have another PostgreSQL installation (such as through Postgres.app), the following instructions will cause problems. If you wish to maintain your current version of PostgreSQL outside of Homebrew we recommend installing from source. Otherwise please be sure to remove non-Homebrew installations before using this method.

注意:如果你已经安装了其他版本的PostgreSQL(比如说PostgreSQL.app),按照以下步骤操作将会出现问题。如果你想保留PostgreSQL的当前版本,建议你从source进行安装。如果不想保留当前版本的话,操作以下步骤之前请卸载非Homebrew的安装版本

#Add our tap
brew tap timescale/tap

#To install
brew install timescaledb

更新Postgresql.conf

Also, you will need to edit your ​postgresql.conf​ file to include necessary libraries:

此外,你需要编辑​postgresql.conf​文件增加必要的库。

# Modify postgresql.conf to uncomment this line and add required libraries.
# 修改postgresql.conf文件去掉这一行的注释
# For example:
# 例如:
shared_preload_libraries = 'timescaledb'

To get started you'll now need to restart PostgreSQL and add a ​postgres​ superuser (used in the rest of the docs):

开始之前需要重启PostgreSQL并且添加一个postgres超级用户(在其他docs中使用的)

# Restart PostgreSQL instance
brew services restart postgresql
# Add a superuser postgres:
createuser postgres -s

​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 ""