From d382828f6ed1edc0f123934d53c52065ecc425c9 Mon Sep 17 00:00:00 2001
From: Magnus Hagander <magnus@hagander.net>
Date: Sun, 19 Dec 2010 21:31:23 +0100
Subject: [PATCH] Remove thread dumping constant that requires newer Platform
 SDK

Since we're not multithreaded it only provides marginally useful
information, and it does require a newer version of the Platform SDK
than we target. We may want to reconsider this in the future along
with a fix for MinGW.
---
 src/backend/port/win32/crashdump.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/backend/port/win32/crashdump.c b/src/backend/port/win32/crashdump.c
index ba6fca75630..2f7c1b3ab66 100644
--- a/src/backend/port/win32/crashdump.c
+++ b/src/backend/port/win32/crashdump.c
@@ -132,11 +132,6 @@ crashDumpHandler(struct _EXCEPTION_POINTERS *pExceptionInfo)
 			dumpType |= MiniDumpWithIndirectlyReferencedMemory |
 				MiniDumpWithPrivateReadWriteMemory;
 		}
-		if (GetProcAddress(hDll, "SymFromIndex") != NULL)
-		{
-			/* If this function exists, we have version 6.2 or newer */
-			dumpType |= MiniDumpWithThreadInfo;
-		}
 
 		systemTicks = GetTickCount();
 		snprintf(dumpPath, _MAX_PATH,
-- 
GitLab