Postgres error after updating TimescaleDB on Ubuntu: file not found

后端 未结 1 608
感情败类
感情败类 2021-01-15 17:39

As specified in the official docs I added the Timescale PPA repository to apt. I then installed it via sudo apt install timescaledb-postgresql-9.6

相关标签:
1条回答
  • 2021-01-15 18:23

    Got it. ALTER EXTENSION timescaledb UPDATE; was close - but this has to be executed on a database that you are connected to, not globally right after logging on to psql. And it's recommended to also pass the -X argument to disable reading the startup file (~/.psqlrc).

    1. psql -X -U postgres -h localhost -W
    2. \c your-timescale-extended-database-name
    3. ALTER EXTENSION timescaledb UPDATE;
    4. \dx

    Output:

                                        List of installed extensions
        Name     | Version |   Schema   |                            Description
    -------------+---------+------------+-------------------------------------------------------------------
    plpgsql     | 1.0     | pg_catalog | PL/pgSQL procedural language
    timescaledb | 0.9.1   | public     | Enables scalable inserts and complex queries for time-series data
    (2 rows)
    
    1. \q to quit psql
    0 讨论(0)
提交回复
热议问题