diff options
author | Magnus Hagander <magnus@hagander.net> | 2014-07-17 12:42:08 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2014-07-17 12:42:08 +0200 |
commit | c0e4520b1667279389bb0dce8d867df2ac25042a (patch) | |
tree | db6dba94baef69091117f0e32b32dd85f620fb95 /doc/src | |
parent | aa688725615a4fb55c460f072fb144900a59582d (diff) | |
download | postgresql-c0e4520b1667279389bb0dce8d867df2ac25042a.tar.gz postgresql-c0e4520b1667279389bb0dce8d867df2ac25042a.zip |
Add option to pg_ctl to choose event source for logging
pg_ctl will log to the Windows event log when it is running as a service,
which is the primary way of running PostgreSQL on Windows. This option
makes it possible to specify which event source to use for this, in order
to separate different instances. The server logging itself is still controlled
by the regular logging parameters, including a separate setting for the event
source. The parameter to pg_ctl only controlls the logging from pg_ctl itself.
MauMau, review in many iterations by Amit Kapila and me.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_ctl-ref.sgml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index 52bcf5e8153..23681294b87 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -420,6 +420,22 @@ PostgreSQL documentation <variablelist> <varlistentry> + <term><option>-e <replaceable class="parameter">source</replaceable></option></term> + <listitem> + <para> + Name of the event source for <application>pg_ctl</application> to use + for logging to the event log when running as a Windows service. The + default is <literal>PostgreSQL</literal>. Note that this only controls + the logging from <application>pg_ctl</application> itself - once + started, the server will use the event source specified + by <xref linkend="guc-event-source">. Should the server fail during + early startup, it may also log using the default event + source <literal>PostgreSQL</literal>. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-N <replaceable class="parameter">servicename</replaceable></option></term> <listitem> <para> |