]> granicus.if.org Git - postgresql/commit
Add option to pg_ctl to choose event source for logging
authorMagnus Hagander <magnus@hagander.net>
Thu, 17 Jul 2014 10:42:08 +0000 (12:42 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 17 Jul 2014 10:42:08 +0000 (12:42 +0200)
commitc0e4520b1667279389bb0dce8d867df2ac25042a
treedb6dba94baef69091117f0e32b32dd85f620fb95
parentaa688725615a4fb55c460f072fb144900a59582d
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.
doc/src/sgml/ref/pg_ctl-ref.sgml
src/backend/utils/error/elog.c
src/backend/utils/misc/guc.c
src/bin/pg_ctl/pg_ctl.c
src/bin/pgevent/pgevent.c
src/include/pg_config_manual.h