diff options
-rw-r--r-- | doc/src/sgml/ref/pg_ctl-ref.sgml | 1 | ||||
-rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index c4eae623560..6ee18d406e7 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -91,6 +91,7 @@ PostgreSQL documentation <arg>-D <replaceable>datadir</replaceable></arg> <arg>-w</arg> <arg>-t <replaceable>seconds</replaceable></arg> + <arg>-s</arg> <arg>-o <replaceable>options</replaceable></arg> <sbr> diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 92fc1f28302..448bb77be49 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -159,6 +159,9 @@ write_eventlog(int level, const char *line) { static HANDLE evtHandle = INVALID_HANDLE_VALUE; + if (silent_mode && level == EVENTLOG_INFORMATION_TYPE) + return; + if (evtHandle == INVALID_HANDLE_VALUE) { evtHandle = RegisterEventSource(NULL, "PostgreSQL"); @@ -1065,6 +1068,9 @@ pgwin32_CommandLine(bool registration) /* concatenate */ sprintf(cmdLine + strlen(cmdLine), " -t %d", wait_seconds); + if (registration && silent_mode) + strcat(cmdLine, " -s"); + if (post_opts) { strcat(cmdLine, " "); |