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 @@ -117,6 +117,7 @@ PostgreSQL documentation
117
117
</arg>
118
118
<arg>-w</arg>
119
119
<arg>-t <replaceable>seconds</replaceable></arg>
120
+ <arg>-s</arg>
120
121
<arg>-o <replaceable>options</replaceable></arg>
121
122
</cmdsynopsis>
122
123
Original file line number Diff line number Diff line change @@ -163,6 +163,9 @@ write_eventlog(int level, const char *line)
163
163
{
164
164
static HANDLE evtHandle = INVALID_HANDLE_VALUE ;
165
165
166
+ if (silent_mode && level == EVENTLOG_INFORMATION_TYPE )
167
+ return ;
168
+
166
169
if (evtHandle == INVALID_HANDLE_VALUE )
167
170
{
168
171
evtHandle = RegisterEventSource (NULL , "PostgreSQL" );
@@ -1276,6 +1279,9 @@ pgwin32_CommandLine(bool registration)
1276
1279
/* concatenate */
1277
1280
sprintf (cmdLine + strlen (cmdLine ), " -t %d" , wait_seconds );
1278
1281
1282
+ if (registration && silent_mode )
1283
+ strcat (cmdLine , " -s" );
1284
+
1279
1285
if (post_opts )
1280
1286
{
1281
1287
strcat (cmdLine , " " );
You can’t perform that action at this time.
0 commit comments