File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ PostgreSQL documentation
9191 <arg>-D <replaceable>datadir</replaceable></arg>
9292 <arg>-w</arg>
9393 <arg>-t <replaceable>seconds</replaceable></arg>
94+ <arg>-s</arg>
9495 <arg>-o <replaceable>options</replaceable></arg>
9596 <sbr>
9697
Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ write_eventlog(int level, const char *line)
159159{
160160 static HANDLE evtHandle = INVALID_HANDLE_VALUE ;
161161
162+ if (silent_mode && level == EVENTLOG_INFORMATION_TYPE )
163+ return ;
164+
162165 if (evtHandle == INVALID_HANDLE_VALUE )
163166 {
164167 evtHandle = RegisterEventSource (NULL , "PostgreSQL" );
@@ -1065,6 +1068,9 @@ pgwin32_CommandLine(bool registration)
10651068 /* concatenate */
10661069 sprintf (cmdLine + strlen (cmdLine ), " -t %d" , wait_seconds );
10671070
1071+ if (registration && silent_mode )
1072+ strcat (cmdLine , " -s" );
1073+
10681074 if (post_opts )
10691075 {
10701076 strcat (cmdLine , " " );
You can’t perform that action at this time.
0 commit comments