Skip to content

Commit 5afdb87

Browse files
authored
Use archive defaults until there's a reason to specify otherwise (#160)
* Use archive defaults until there's a reason to specify otherwise * Fix lint
1 parent 9a56672 commit 5afdb87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/flypg/pg.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ func (c *PGConfig) SetDefaults() error {
168168
"wal_level": "replica",
169169
"wal_log_hints": true,
170170
"hot_standby": true,
171-
"archive_mode": "on",
172-
"archive_command": "'/bin/true'",
173171
"shared_preload_libraries": fmt.Sprintf("'%s'", strings.Join(sharedPreloadLibraries, ",")),
174172
}
175173

@@ -416,7 +414,7 @@ func (c *PGConfig) setDefaultHBA() error {
416414

417415
for _, entry := range entries {
418416
str := fmt.Sprintf("%s %s %s %s %s\n", entry.Type, entry.Database, entry.User, entry.Address, entry.Method)
419-
_, err := file.Write([]byte(str))
417+
_, err := file.WriteString(str)
420418
if err != nil {
421419
return err
422420
}

0 commit comments

Comments
 (0)