Uninstall TimescaleDB
PostgreSQL is designed to be easily extensible. The extensions loaded into the database can function just like features that are built in. TimescaleDB extends PostgreSQL for time-series data—giving PostgreSQL the high-performance, scalability, and analytical capabilities required by modern data-intensive applications. If you installed TimescaleDB with Homebrew or MacPorts, you can uninstall it without having to uninstall PostgreSQL.
Uninstalling TimescaleDB using Homebrew
At the
psql
prompt, remove the TimescaleDB extension:DROP EXTENSION timescaledb;
At the command prompt, remove
timescaledb
fromshared_preload_libraries
in thepostgresql.conf
configuration file:nano /opt/homebrew/var/[email protected]/postgresql.conf
shared_preload_libraries = ''
Save the changes to the
postgresql.conf
file.Restart PostgreSQL:
brew services restart postgresql
Check that the TimescaleDB extension is uninstalled by using the
\dx
command at thepsql
prompt. Output is similar to:tsdb-# \dx
List of installed extensions
Name | Version | Schema | Description
-------------+---------+------------+-------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(1 row)
Uninstall TimescaleDB:
brew uninstall timescaledb
Remove all the dependencies and related files:
brew remove timescaledb
Uninstalling TimescaleDB using MacPorts
At the
psql
prompt, remove the TimescaleDB extension:DROP EXTENSION timescaledb;
At the command prompt, remove
timescaledb
fromshared_preload_libraries
in thepostgresql.conf
configuration file:nano /opt/homebrew/var/[email protected]/postgresql.conf
shared_preload_libraries = ''
Save the changes to the
postgresql.conf
file.Restart PostgreSQL:
port reload postgresql
Check that the TimescaleDB extension is uninstalled by using the
\dx
command at thepsql
prompt. Output is similar to:tsdb-# \dx
List of installed extensions
Name | Version | Schema | Description
-------------+---------+------------+-------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(1 row)
Uninstall TimescaleDB and the related dependencies:
port uninstall timescaledb --follow-dependencies