We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6738b08 + 673f3e3 commit 3a17b68Copy full SHA for 3a17b68
pkg/retrieval/engine/postgres/logical/dump.go
@@ -588,6 +588,10 @@ func (d *DumpJob) getExecEnvironmentVariables() []string {
588
execEnvs = append(execEnvs, "PGPASSWORD="+d.config.db.Password)
589
}
590
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
+
595
return execEnvs
596
597
0 commit comments