Skip to content

Commit 3a17b68

Browse files
committed
Merge branch '279-unlimited-stetement-timeout' into 'master'
fix: turn off statement timeout before a dump (#279) Closes #279 See merge request postgres-ai/database-lab!312
2 parents 6738b08 + 673f3e3 commit 3a17b68

File tree

1 file changed

+4
-0
lines changed
  • pkg/retrieval/engine/postgres/logical

1 file changed

+4
-0
lines changed

pkg/retrieval/engine/postgres/logical/dump.go

+4
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,10 @@ func (d *DumpJob) getExecEnvironmentVariables() []string {
588588
execEnvs = append(execEnvs, "PGPASSWORD="+d.config.db.Password)
589589
}
590590

591+
// Set unlimited statement_timeout for the dump session
592+
// because there is a risk of dump failure due to exceeding the statement_timeout.
593+
execEnvs = append(execEnvs, "PGOPTIONS=-c statement_timeout=0")
594+
591595
return execEnvs
592596
}
593597

0 commit comments

Comments
 (0)