As it turns out, it was running in the console because I didn't tell it where to stream the log. The following sent the process in the background:
pg_ctl restart -l %PGDATA%\server.log
Question: Is there a way to specify a default server log (like in postgresql.conf
) so that -l
is optional only if I want to override it?
pg_ctl restart -l %PGDATA%\server.log