mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 13:43:16 +08:00
autodetect timescaledb when version >= 9.6
This commit is contained in:
@ -128,6 +128,10 @@ export class PostgresDatasource {
|
||||
return this.metricFindQuery("SELECT current_setting('server_version_num')::int/100", {});
|
||||
}
|
||||
|
||||
getTimescaleDBVersion() {
|
||||
return this.metricFindQuery("SELECT extversion FROM pg_extension WHERE extname = 'timescaledb'", {});
|
||||
}
|
||||
|
||||
testDatasource() {
|
||||
return this.metricFindQuery('SELECT 1', {})
|
||||
.then(res => {
|
||||
|
Reference in New Issue
Block a user