#include "postgres.h"
#include <dbghelp.h>
Go to the source code of this file.
◆ MINIDUMPWRITEDUMP
◆ crashDumpHandler()
Definition at line 90 of file crashdump.c.
91{
92
93
94
95
97
99 {
100
110
114
115
118 {
119 write_stderr(
"could not load dbghelp.dll, cannot write crash dump\n");
121 }
122
124
126 {
127 write_stderr(
"could not load required functions in dbghelp.dll, cannot write crash dump\n");
129 }
130
131
132
133
134
135
136
139
141 {
142
145 }
146
149 "crashdumps\\postgres-pid%0i-%0i.mdmp",
152
157 {
158 write_stderr(
"could not open crash dump file \"%s\" for writing: error code %lu\n",
161 }
162
166 else
167 write_stderr(
"could not write crash dump to file \"%s\": error code %lu\n",
169
171 }
172
174}
#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 |
| ) |
|