#include "postgres.h"
#include <dbghelp.h>
Go to the source code of this file.
◆ MINIDUMPWRITEDUMP
◆ crashDumpHandler()
Definition at line 76 of file crashdump.c.
77{
78
79
80
81
83
85 {
86
96
100
101
104 {
105 write_stderr(
"could not load dbghelp.dll, cannot write crash dump\n");
107 }
108
110
112 {
113 write_stderr(
"could not load required functions in dbghelp.dll, cannot write crash dump\n");
115 }
116
117
118
119
120
121
122
125
127 {
128
131 }
132
135 "crashdumps\\postgres-pid%0i-%0i.mdmp",
138
143 {
144 write_stderr(
"could not open crash dump file \"%s\" for writing: error code %lu\n",
147 }
148
152 else
153 write_stderr(
"could not write crash dump to file \"%s\": error code %lu\n",
155
157 }
158
160}
#define write_stderr(str)
void(* pg_funcptr_t)(void)
BOOL(WINAPI * MINIDUMPWRITEDUMP)(HANDLE hProcess, DWORD dwPid, HANDLE hFile, MINIDUMP_TYPE DumpType, CONST PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam, CONST PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam, CONST PMINIDUMP_CALLBACK_INFORMATION CallbackParam)
static void dumpType(Archive *fout, const TypeInfo *tyinfo)
References dumpType(), fb(), snprintf, and write_stderr.
Referenced by pgwin32_install_crashdump_handler().
◆ pgwin32_install_crashdump_handler()
| void pgwin32_install_crashdump_handler |
( |
void |
| ) |
|