Skip to content

Commit 95e53be

Browse files
skip template1 database
1 parent febb909 commit 95e53be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/connector/database.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ func (r *databaseSyncer) List(ctx context.Context, parentResourceID *v2.Resource
7373
continue
7474
}
7575

76+
if o.Name == "template1" {
77+
// Skip the template1 database, as it is a system database and not meant to be used directly.
78+
l.Debug("skipping system database", zap.String("database", o.Name))
79+
continue
80+
}
81+
7682
_, _, err := r.clientPool.Get(ctx, fmt.Sprintf("%d", o.ID))
7783
if err != nil {
7884
var pgErr *pgconn.PgError

0 commit comments

Comments
 (0)