Install and configure TimescaleDB on Postgres
This section shows you how to install the latest version of Postgres and TimescaleDB on a supported platform using the packages supplied by Tiger Data.
- Install Homebrew, if you don't already have it:
For more information about Homebrew, including installation instructions, see the [Homebrew documentation][homebrew].
At the command prompt, add the TimescaleDB Homebrew tap:
Install TimescaleDB and psql:
Update your path to include psql.
On Intel chips, the symbolic link is added to /usr/local/bin. On Apple Silicon, the symbolic link is added to /opt/homebrew/bin.
Run the
timescaledb-tunescript to configure your database:Change to the directory where the setup script is located. It is typically, located at
/opt/homebrew/Cellar/timescaledb/<VERSION>/bin/, where<VERSION>is the version oftimescaledbthat you installed:Run the setup script to complete installation.
Log in to Postgres as
postgres
You are in the psql shell.
- Set the password for
postgres
When you have set the password, type \q to exit psql.
- Install MacPorts by downloading and running the package installer.
For more information about MacPorts, including installation instructions, see the [MacPorts documentation][macports].
- Install TimescaleDB and psql:
To view the files installed, run:
MacPorts does not install the timescaledb-tools package or run the timescaledb-tune script. For more information about tuning your database, see the [TimescaleDB tuning tool][timescale-tuner].
- Log in to Postgres as
postgres
You are in the psql shell.
- Set the password for
postgres
When you have set the password, type \q to exit psql.