Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/controller/postgrescluster/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ func (r *Reconciler) reconcileDatabaseInitSQL(ctx context.Context,
// A writable pod executor has been found and we have the sql provided by
// the user. Setup a write function to execute the sql using the podExecutor
write := func(ctx context.Context, exec postgres.Executor) error {
_, _, err := exec.Exec(ctx, strings.NewReader(data), map[string]string{})
stdout, stderr, err := exec.Exec(ctx, strings.NewReader(data), map[string]string{})
log.V(1).Info("applied init SQL", "stdout", stdout, "stderr", stderr)
return err
}

Expand Down