Skip to content

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

chore: set stats_temp_directory to tmp (#3129)

Danny Xu7820fcbda4dc
diff --git a/resources/postgres/postgres.go b/resources/postgres/postgres.go
index 9a2d8c184e..db779f30c7 100644
--- a/resources/postgres/postgres.go
+++ b/resources/postgres/postgres.go
@@ -109,7 +109,7 @@ func Start(port int, baseDir string, dataDir string, stdout, stderr io.Writer) (
// https://www.postgresql.org/docs/current/app-postgres.html
p := exec.Command(pgbin, "start", "-w",
"-D", dataDir,
- "-o", fmt.Sprintf(`-p %d -k %s -h ""`, port, common.GetPostgresSocketDir()))
+ "-o", fmt.Sprintf(`-p %d -k %s -h "" -c stats_temp_directory=/tmp`, port, common.GetPostgresSocketDir()))
p.Stdout = stdout
p.Stderr = stderr