Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when timescaledb not installed in source database #25

Closed
JamesGuthrie opened this issue Sep 21, 2023 · 0 comments · Fixed by #31
Closed

Error when timescaledb not installed in source database #25

JamesGuthrie opened this issue Sep 21, 2023 · 0 comments · Fixed by #31
Assignees
Labels
bug Something isn't working

Comments

@JamesGuthrie
Copy link
Member

When run against a database without timescaledb:

> timescale-doctor postgres://postgres:1@localhost:5432
Traceback (most recent call last):
  File "/home/james/workspace/doctor/venv/bin/timescale-doctor", line 8, in <module>
    sys.exit(main())
  File "/home/james/workspace/doctor/venv/lib/python3.10/site-packages/doctor/cli.py", line 57, in main
    check_rules(dsn)
  File "/home/james/workspace/doctor/venv/lib/python3.10/site-packages/doctor/__init__.py", line 83, in check_rules
    for report in rule.execute(conn, rule.message):
  File "/home/james/workspace/doctor/venv/lib/python3.10/site-packages/doctor/__init__.py", line 62, in execute
    cursor.execute(self.query) # pylint: disable=E1101
  File "/nix/store/khvw06lqds60i0npy58zs27xpwb8x0d9-python3.10-psycopg2-2.9.5/lib/python3.10/site-packages/psycopg2/extras.py", line 236, in execute
    return super().execute(query, vars)
psycopg2.errors.UndefinedTable: relation "_timescaledb_catalog.hypertable" does not exist
LINE 5:       FROM _timescaledb_catalog.hypertable ht
                   ^
@mkindahl mkindahl added the bug Something isn't working label Sep 23, 2023
@mkindahl mkindahl linked a pull request Sep 24, 2023 that will close this issue
@mkindahl mkindahl self-assigned this Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants