Install Windows crash dump handler before all else.
authorNoah Misch
Sun, 12 Nov 2017 22:31:00 +0000 (14:31 -0800)
committerNoah Misch
Sun, 12 Nov 2017 22:31:04 +0000 (14:31 -0800)
commite17b38db663949e7b22aa92c2c57dcdf518ecee9
tree588e0da388dc21fb81d6db998f7baa5eea254493
parent19cf9e96ae11b549073da6e63b317ec7ac1fb61e
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
src/backend/main/main.c