fix: Downgrade embedded PostgreSQL (#3453)

This was causing a new data path to occur, which broke existing installs.
It needs to use the same path and upgrade instead.
This commit is contained in:
Kyle Carberry
2022-08-10 10:08:24 -05:00
committed by GitHub
parent fd73d6dd0d
commit d6d9cf9b30
+1 -1
View File
@@ -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")).