mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Support for collecting crash dumps on Windows
Add support for collecting "minidump" style crash dumps on Windows, by setting up an exception handling filter. Crash dumps will be generated in PGDATA/crashdumps if the directory is created (the existance of the directory is used as on/off switch for the generation of the dumps). Craig Ringer and Magnus Hagander
This commit is contained in:
@@ -81,6 +81,14 @@ main(int argc, char *argv[])
|
||||
*/
|
||||
argv = save_ps_display_args(argc, argv);
|
||||
|
||||
/*
|
||||
* If supported on the current platform, set up a handler to be called if
|
||||
* the backend/postmaster crashes with a fatal signal or exception.
|
||||
*/
|
||||
#ifdef WIN32
|
||||
pgwin32_install_crashdump_handler();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set up locale information from environment. Note that LC_CTYPE and
|
||||
* LC_COLLATE will be overridden later from pg_control if we are in an
|
||||
|
||||
Reference in New Issue
Block a user