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 /src/include | |
parent | aa688725615a4fb55c460f072fb144900a59582d (diff) |
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 'src/include')
-rw-r--r-- | src/include/pg_config_manual.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index d1f99fbafef..16f7ef9bea6 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -155,6 +155,11 @@ #define DEFAULT_PGSOCKET_DIR "/tmp" /* + * This is the default event source for Windows event log. + */ +#define DEFAULT_EVENT_SOURCE "PostgreSQL" + +/* * The random() function is expected to yield values between 0 and * MAX_RANDOM_VALUE. Currently, all known implementations yield * 0..2^31-1, so we just hardwire this constant. We could do a |