From 22b24ab1b774ea41b4d83d0d269c40f4c394b496 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 10 Aug 2022 10:07:29 -0500 Subject: [PATCH] fix: Downgrade embedded PostgreSQL This was causing a new data path to occur, which broke existing installs. It needs to use the same path and upgrade instead. --- cli/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/server.go b/cli/server.go index fd8e41d2ebb37..86016d9c9bd7a 100644 --- a/cli/server.go +++ b/cli/server.go @@ -1153,7 +1153,7 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg stdlibLogger := slog.Stdlib(ctx, logger.Named("postgres"), slog.LevelDebug) ep := embeddedpostgres.NewDatabase( embeddedpostgres.DefaultConfig(). - Version(embeddedpostgres.V14). + Version(embeddedpostgres.V13). BinariesPath(filepath.Join(cfg.PostgresPath(), "bin")). DataPath(filepath.Join(cfg.PostgresPath(), "data")). RuntimePath(filepath.Join(cfg.PostgresPath(), "runtime")).