Compile using the Visual Studio 2019

Started by Juan José Santamaría Flechaover 7 years ago4 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t40624
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 28, 2026 at 04:12 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t40624_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t40624_1 && git checkout t40624_1

Patchset v1 (message #1) is on t40624_1

Jump to latest
#1Juan José Santamaría Flecha
juanjo.santamaria@gmail.com

Hello,

While trying to setup a test environment under Windows I have managed to
build the source using the latest Visual Studio 2019 [1]https://visualstudio.microsoft.com/vs/.

It's only been tested in this one environment, Windows 10 x64, but the
changes seem tool dependant only.

Regards,

Juan José Santamaría Flecha

[1]: https://visualstudio.microsoft.com/vs/

Attachments:

t40624_1
build_using_msvc2019.patchapplication/octet-stream; name=build_using_msvc2019.patchDownload+73-12
#2David Rowley
dgrowleyml@gmail.com
In reply to: Juan José Santamaría Flecha (#1)
Re: Compile using the Visual Studio 2019

On Tue, 21 May 2019 at 05:46, Juan José Santamaría Flecha
<juanjo.santamaria@gmail.com> wrote:

While trying to setup a test environment under Windows I have managed to build the source using the latest Visual Studio 2019 [1].

It's only been tested in this one environment, Windows 10 x64, but the changes seem tool dependant only.

Thanks for doing work on this. Just to let you know there's already
some work pending to do this in
/messages/by-id/CAJrrPGegJG_gtQBMQffCNBny3i3fpe8QfE0DUkPSQEZf-FoY9w@mail.gmail.com

It's marked in the next commitfest entry in
https://commitfest.postgresql.org/23/2122/

Maybe you could take a look at that and maybe sign up to review it?

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

#3Michael Paquier
michael@paquier.xyz
In reply to: David Rowley (#2)
Re: Compile using the Visual Studio 2019

On Tue, May 21, 2019 at 02:37:10PM +1200, David Rowley wrote:

Maybe you could take a look at that and maybe sign up to review it?

Yes, that would be great. New VS environments are a pain to set up so
any input is welcome.

-       # visual 2017 hasn't changed the nmake version to 15, so still
          using the older version for comparison.
+       # visual 2019 hasn't changed the nmake version to
          15, so still using the older version for comparison.
        if ($major > 14)

I have not checked the other patch and I am pretty sure that you are
doing the same thing. Still, for the notice, this comment update is
incorrect as VS 2017 also marks nmake with version 15.
--
Michael

#4Juan José Santamaría Flecha
juanjo.santamaria@gmail.com
In reply to: Michael Paquier (#3)
Re: Compile using the Visual Studio 2019

On Tue, May 21, 2019 at 7:36 AM Michael Paquier <michael@paquier.xyz> wrote:

On Tue, May 21, 2019 at 02:37:10PM +1200, David Rowley wrote:

Maybe you could take a look at that and maybe sign up to review it?

Yes, that would be great. New VS environments are a pain to set up so
any input is welcome.

At some point I did check, but that previous work went unnoticed. Now that
I have a better knowledge about building on Windows I will take a look at
it.

I have not checked the other patch and I am pretty sure that you are
doing the same thing. Still, for the notice, this comment update is
incorrect as VS 2017 also marks nmake with version 15.

I don't want to keep this thread going any further, so I will check the
other patch and see how it goes through this point.

Regards,

Juan José Santamaría Flecha