This will install both TimescaleDB and PostgreSQL via Homebrew.
Note: TimescaleDB requires PostgreSQL 12 or 13.
# Add our tap brew tap timescale/tap # To install brew install timescaledb # Post-install to move files to appropriate place /usr/local/bin/timescaledb_move.sh
There are a variety of settings that can be configured for your
new database. At a minimum, you will need to update your
file to include our library in the parameter
The easiest way to get started is to run
timescaledb-tune, which is
installed as a dependency when you install via Homebrew:
This will ensure that our extension is properly added to the parameter
shared_preload_libraries as well as offer suggestions for tuning memory,
parallelism, and other settings.
To get started you'll now need to restart PostgreSQL and add
postgres superuser (used in the rest of the docs):
# Restart PostgreSQL instance brew services restart postgresql # Add a superuser postgres: createuser postgres -s
brew install timescaledb --with-oss-only.