Skip to content

Commit

Permalink
🔇 Set Postgres client_min_messages to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 14, 2022
1 parent fac6b73 commit 32d4b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/grammar/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (Postgres) DumpCommand(conf config.Dump) []string {
}

func (Postgres) RestoreCommand(conf config.Restore, inputFormat sqlformat.Format) []string {
cmd := []string{"PGPASSWORD=" + conf.Password}
cmd := []string{"PGPASSWORD=" + conf.Password, "PGOPTIONS='-c client_min_messages=WARNING'"}
switch inputFormat {
case sqlformat.Gzip, sqlformat.Plain:
cmd = append(cmd, "psql", "--quiet", "--output=/dev/null")
Expand Down

0 comments on commit 32d4b0b

Please sign in to comment.