diff --git a/public/app/plugins/datasource/postgres/meta_query.ts b/public/app/plugins/datasource/postgres/meta_query.ts index c30ab26fa2e..5ba0154ec01 100644 --- a/public/app/plugins/datasource/postgres/meta_query.ts +++ b/public/app/plugins/datasource/postgres/meta_query.ts @@ -132,7 +132,7 @@ table_schema IN ( break; } case 'group': { - query += " AND data_type IN ('text','character','character varying')"; + query += " AND data_type IN ('text','character','character varying','uuid')"; break; } } diff --git a/public/app/plugins/datasource/postgres/query_ctrl.ts b/public/app/plugins/datasource/postgres/query_ctrl.ts index 4327b3ae8db..44d3705b38d 100644 --- a/public/app/plugins/datasource/postgres/query_ctrl.ts +++ b/public/app/plugins/datasource/postgres/query_ctrl.ts @@ -661,12 +661,7 @@ export class PostgresQueryCtrl extends QueryCtrl { } addGroupAction() { - switch (this.groupAdd.value) { - default: { - this.addGroup(this.groupAdd.type, this.groupAdd.value); - } - } - + this.addGroup(this.groupAdd.type, this.groupAdd.value); this.resetPlusButton(this.groupAdd); this.updateRawSqlAndRefresh(); }