According to the docs:
TimescaleDB supports having different extension versions on different databases within the same PostgreSQL instance.
I can get the installed version of the instance with this SQL command:
SELECT extversion
FROM pg_extension
where extname = 'timescaledb';
But how can I get the version of a specific database?
Notes:
- I prefer to get the version via sql (not psql)
- the reason for this is that we'd like to know if we must update the datebase (i.e. execute
ALTER EXTENSION timescaledb UPDATE;
) or not