Install Windows crash dump handler before all else.

Noah Misch <noah@leadboat.com>

Commit: 8c92e66f1a168fdb0862b8d96db4fe0353effc9d
Author: Noah Misch <noah@leadboat.com>
Date: 2017-11-12T22:31:04Z
Releases: 9.6.7
Install Windows crash dump handler before all else.

Apart from calling write_stderr() on failure, the handler depends on no
PostgreSQL facilities.  We have experienced crashes before reaching the
former call site.  Given such an early crash, this change cannot hurt
and may produce a helpful dump.  Absent an early crash, this change has
no effect.  Back-patch to 9.3 (all supported versions).

Takayuki Tsunakawa

Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F80CD13@G01JPEXMBYT05

Files

PathChange+/−
src/backend/main/main.c modified +8 −8

Discussion