We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea6a6e6 + f6ba131 commit de0b0a2Copy full SHA for de0b0a2
pkg/retrieval/engine/postgres/physical/custom.go
@@ -49,8 +49,10 @@ func (c *custom) GetRestoreCommand() string {
49
func (c *custom) GetRecoveryConfig() []byte {
50
buffer := bytes.Buffer{}
51
52
- buffer.WriteString("standby_mode = 'on'\n")
53
- buffer.WriteString(fmt.Sprintf("restore_command = '%s'\n", c.options.RestoreCommand))
+ if c.options.RestoreCommand != "" {
+ buffer.WriteString("standby_mode = 'on'\n")
54
+ buffer.WriteString(fmt.Sprintf("restore_command = '%s'\n", c.options.RestoreCommand))
55
+ }
56
57
return buffer.Bytes()
58
}
0 commit comments