2 18.12. Registering Event Log on Windows #
4 To register a Windows event log library with the operating system,
6 regsvr32 pgsql_library_directory/pgevent.dll
8 This creates registry entries used by the event viewer, under the
9 default event source named PostgreSQL.
11 To specify a different event source name (see event_source), use the /n
13 regsvr32 /n /i:event_source_name pgsql_library_directory/pgevent.dll
15 To unregister the event log library from the operating system, issue
17 regsvr32 /u [/i:event_source_name] pgsql_library_directory/pgevent.dll
21 To enable event logging in the database server, modify log_destination
22 to include eventlog in postgresql.conf.