バージョンごとのドキュメント一覧

19.12. WindowsにおけるEvent Logの登録 #

<title>Registering <application>Event Log</application> on <systemitem class="osname">Windows</systemitem></title>

To register a <systemitem class="osname">Windows</systemitem> <application>event log</application> library with the operating system, issue this command: WindowsのOSのevent logライブラリに登録するには、以下のコマンドを発行します:

regsvr32 pgsql_library_directory/pgevent.dll

This creates registry entries used by the event viewer, under the default event source named <literal>PostgreSQL</literal>. このコマンドは、PostgreSQLというデフォルトのイベントソース名で、イベントビューアが使用するレジストリエントリを作成します。

To specify a different event source name (see <xref linkend="guc-event-source"/>), use the <literal>/n</literal> and <literal>/i</literal> options: 異なるイベントソース名(event_source参照)を指定するには、/nおよび/iオプションを使ってください:

regsvr32 /n /i:event_source_name pgsql_library_directory/pgevent.dll

To unregister the <application>event log</application> library from the operating system, issue this command: OSからevent logライブラリを削除するには、以下のコマンドを発行します:

regsvr32 /u [/i:event_source_name] pgsql_library_directory/pgevent.dll

注記

To enable event logging in the database server, modify <xref linkend="guc-log-destination"/> to include <literal>eventlog</literal> in <filename>postgresql.conf</filename>. データベースサーバにおけるイベントロギングを有効にするには、eventlogを含むようにpostgresql.conflog_destinationを変更してください。