mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
require postgres 9.4+ for ordered set aggregate functions
This commit is contained in:
@@ -123,6 +123,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
this.selectMenu.push(aggregates);
|
||||
|
||||
// ordered set aggregates require postgres 9.4+
|
||||
if (this.datasource.jsonData.postgresVersion >= 904) {
|
||||
let aggregates2 = {
|
||||
text: 'Ordered-Set Aggregate Functions',
|
||||
value: 'percentile',
|
||||
@@ -132,6 +133,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
],
|
||||
};
|
||||
this.selectMenu.push(aggregates2);
|
||||
}
|
||||
|
||||
let windows = {
|
||||
text: 'Window Functions',
|
||||
|
||||
Reference in New Issue
Block a user