Skip to content

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

fix: skip bootstraping postgres if using external pg (#2168)

Danny Xue840a2138d87
diff --git a/server/server.go b/server/server.go
index 1d7dcf50b7..d09321b853 100644
--- a/server/server.go
+++ b/server/server.go
@@ -133,7 +133,10 @@ func NewServer(ctx context.Context, prof Profile) (*Server, error) {
}
// Install Postgres.
- pgDataDir := common.GetPostgresDataDir(prof.DataDir)
+ var pgDataDir string
+ if prof.useEmbedDB() {
+ pgDataDir = common.GetPostgresDataDir(prof.DataDir)
+ }
log.Info("-----Embedded Postgres Config BEGIN-----")
log.Info(fmt.Sprintf("resourceDir=%s\n", resourceDir))
log.Info(fmt.Sprintf("pgdataDir=%s\n", pgDataDir))