Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

pg: skip sql advisor check till it's supported.

spinningbotf401d5d9d742
diff --git a/plugin/advisor/advisor.go b/plugin/advisor/advisor.go
index 1a57c634c9..35b5bdae86 100644
--- a/plugin/advisor/advisor.go
+++ b/plugin/advisor/advisor.go
@@ -81,6 +81,10 @@ func Register(dbType db.Type, advType AdvisorType, f Advisor) {
}
func Check(dbType db.Type, advType AdvisorType, ctx AdvisorContext, statement string) ([]Advice, error) {
+ // TODO(spinningbot): skip Postgres SQL advisor check till it's supported.
+ if dbType == db.Postgres {
+ return nil, nil
+ }
advisorMu.RLock()
dbAdvisors, ok := advisors[dbType]
defer advisorMu.RUnlock()