Skip to main content
Formatting; removed question portion
Source Link
Paul White
  • 90.3k
  • 30
  • 424
  • 663

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

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?

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
Source Link
amphibient
  • 354
  • 1
  • 6
  • 17

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?