Skip to content

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

fix #30: skip internal databases from cloud service providers (#33)

p0ny33257a6e10f5
diff --git a/plugin/db/pg/pg.go b/plugin/db/pg/pg.go
index 43b14938f6..09e1e1adfd 100644
--- a/plugin/db/pg/pg.go
+++ b/plugin/db/pg/pg.go
@@ -327,6 +327,12 @@ func (driver *Driver) SyncSchema(ctx context.Context) ([]*db.DBUser, []*db.DBSch
excludedDatabaseList := map[string]bool{
// Skip our internal "bytebase" database
"bytebase": true,
+ // Skip internal databases from cloud service providers
+ // see https://github.com/bytebase/bytebase/issues/30
+ // aws
+ "rdsadmin": true,
+ // gcp
+ "cloudsql": true,
}
// Skip all system databases
for k := range systemDatabases {