Re: eventlog fix - Mailing list pgsql-patches

From Laurent Ballester
Subject Re: eventlog fix
Date
Msg-id 001401c45373$23372ee0$622a7c52@fleche
Whole thread Raw
In response to Re: eventlog fix  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
>
> Would you send me documentation explaining how to register this DLL with
> the event logger on Win32?  Ideally you could send me a diff against
> installation.sgml.
>

Hello Bruce,



After the DLL was in it target directory (C:\msys\1.0\local\pgsql\lib with
make install)

You can register the DLL to windows event log with the command

Regsvr32 pgevent.dll or regsvr32 /s pgevent.dll whish is a silent mode.



To uninstall, regsvr32 /u pgevent.dll will delete key add by the DLL in
Windows registry.



The DLL create the following entry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\P
ostgreSQL] with two values :

EventMessageFile wish contains full path of DLL
C:\msys\1.0\local\pgsql\lib\pgevent.dll

TypesSupported : error type message send by postgresql



Regsvr32 is a standard program located in %systemroot%\system32



Regards

Laurent Ballester




pgsql-patches by date:

Previous
From: "Matthew T. O'Connor"
Date:
Subject: pg_autovacuum integration patch
Next
From: "Magnus Hagander"
Date:
Subject: Re: pg_autovacuum integration patch