Hello,
as a complement:
I used MSYS2 and MinGW-w64 to build version 11devel
from https://www.postgresql.org/ftp/snapshot/dev/
on my win 7 64 bit desktop.
What I remember is that I found good advices in
https://www.postgresql.org/docs/current/static/installation-platform-notes.html#INSTALLATION-NOTES-MINGW
and
https://wiki.postgresql.org/wiki/Building_With_MinGW
I don't remenber the details of the installation process, but it was working
with
Unzip and untar tarball then
cd postgresql-11devel
./configure --build=x86_64-w64-mingw32 --without-zlib
make
make install
regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html