Skip to content

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

chore: suppress embedded PG checkpoing log (#17397)

Tianzhou892e16962942
diff --git a/backend/resources/postgres/postgres.go b/backend/resources/postgres/postgres.go
index 88dccdd31c..80e5db10d0 100644
--- a/backend/resources/postgres/postgres.go
+++ b/backend/resources/postgres/postgres.go
@@ -24,7 +24,7 @@ func start(port int, dataDir string, serverLog bool) (err error) {
// We also set max_connections to 500 for tests.
p := exec.Command("pg_ctl", "start", "-w",
"-D", dataDir,
- "-o", fmt.Sprintf(`-p %d -k %s -N 500 -h ""`, port, common.GetPostgresSocketDir()))
+ "-o", fmt.Sprintf(`-p %d -k %s -N 500 -h "" -c log_checkpoints=off`, port, common.GetPostgresSocketDir()))
uid, _, sameUser, err := shouldSwitchUser()
if err != nil {