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 @@ -104,6 +104,7 @@ PostgreSQL documentation
104
104
<arg>-D <replaceable>datadir</replaceable></arg>
105
105
<arg>-w</arg>
106
106
<arg>-t <replaceable>seconds</replaceable></arg>
107
+ <arg>-s</arg>
107
108
<arg>-o <replaceable>options</replaceable></arg>
108
109
</cmdsynopsis>
109
110
Original file line number Diff line number Diff line change @@ -155,6 +155,9 @@ write_eventlog(int level, const char *line)
155
155
{
156
156
static HANDLE evtHandle = INVALID_HANDLE_VALUE ;
157
157
158
+ if (silent_mode && level == EVENTLOG_INFORMATION_TYPE )
159
+ return ;
160
+
158
161
if (evtHandle == INVALID_HANDLE_VALUE )
159
162
{
160
163
evtHandle = RegisterEventSource (NULL , "PostgreSQL" );
@@ -1131,6 +1134,9 @@ pgwin32_CommandLine(bool registration)
1131
1134
/* concatenate */
1132
1135
sprintf (cmdLine + strlen (cmdLine ), " -t %d" , wait_seconds );
1133
1136
1137
+ if (registration && silent_mode )
1138
+ strcat (cmdLine , " -s" );
1139
+
1134
1140
if (post_opts )
1135
1141
{
1136
1142
strcat (cmdLine , " " );
You can’t perform that action at this time.
0 commit comments