> [] On Behalf Of Tsunakawa,
> Takayuki
> The reason is for not outputing the crash dump is a) the crash occurred
> before installing the Windows exception handler
> (pgwin32_install_crashdump_handler() call) and b) the effect of the
> following call in postmaster is inherited in the child process.
>               /* In case of general protection fault, don't show GUI popup
> box */
>               SetErrorMode(SEM_FAILCRITICALERRORS |
> But I'm not sure in what order we should do
> pgwin32_install_crashdump_handler(), startup_hacks() and steps therein,
> MemoryContextInit().  I think that's another patch.

Just installing the handler at the beginning of main() seems fine.  Patch 

Takayuki Tsunakawa

Attachment: crash_dump_before_installing_handler.patch
Description: crash_dump_before_installing_handler.patch

Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to