From: | "Laurent Ballester" <postgresql(dot)ballester(at)wanadoo(dot)fr> |
---|---|
To: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | eventlog fix |
Date: | 2004-06-01 22:37:23 |
Message-ID: | 001701c44829$01f1f670$0921fdc1@fleche |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Hello,
The purpose of this patch is to fix an error when log_destination is set to
'eventlog' value in postgresql.conf files.
If you launch postmaster and see after fir log in windows event report
tools, you will see an error message with postgresql message like that :
Sorry for this French copy screen, the error message is: description for id
event #0 is missing for PostgreSQL source.
To fix the error it is mandatory to describe and register a message with an
ID set to 0. The message is declared in a MC file whish need to be compiled
by MC compiler. The MC compiler is part of core SDK and is not available
with Msys tools but can be freely downloaded from Microsoft web site, so I
suggest storing in CVS msg00001.bin a bin file result of MC compiler.
The rest of DLL is functions to allow setup program to register/unregister
DLL to windows registry database after copy it in it's target directory.
(regsvr32 pgevent.dll to register, regsvr32 /u pgevent.dll to unregister
it).
After discussion on win32 mailing list, I suggest to store source under
src/bin/pg_event
regards,
Laurent Ballester
Attachment | Content-Type | Size |
---|---|---|
pgmsgevent.rc | text/plain | 35 bytes |
Makefile | application/octet-stream | 775 bytes |
MSG00001.bin | application/octet-stream | 32 bytes |
pgevent.c | text/plain | 3.1 KB |
pgevent.def | text/plain | 160 bytes |
pgmsgevent.h | text/plain | 910 bytes |
pgmsgevent.mc | application/octet-stream | 69 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2004-06-02 08:38:32 | Re: eventlog fix |
Previous Message | Euler Taveira de Oliveira | 2004-06-01 19:12:55 | small fix in FAQ |