pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Josef Šimánek <josef.simanek@gmail.com>
Cc: Catch All <catchall@lightn.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: JIT on Windows with Postgres 12.1
Date: Thu, 13 Feb 2020 12:25:40 +0900
Message-ID: <20200213032540.GA1520@paquier.xyz> (raw)
In-Reply-To: <20200212200511.iu74lazbhj4tym3l@alap3.anarazel.de>
References: <CAB1ky74iFsYSVA+WT5h6iToyis+1FKUGVhNkyLnGNJ9frjXchQ@mail.gmail.com>
	<CAFp7QwrSRHaVThvNMMv5=J5NZTBwhw9bkmG67yCUL497Cs2atw@mail.gmail.com>
	<20200212194221.ldmikn5usrfmmsue@alap3.anarazel.de>
	<11095.1581537296@sss.pgh.pa.us>
	<20200212200511.iu74lazbhj4tym3l@alap3.anarazel.de>

On Wed, Feb 12, 2020 at 12:05:11PM -0800, Andres Freund wrote:
> Yes, LLVM would work on windows. I'd not even be surprised if one could
> make it work on windows already when using a mingw based build, instead
> of msvc.

For MSVC, assuming that you have the proper dependencies for JIT
compilation and LLVM available, and just for the reference if anybody
is interesting in making that happen (Tom and Andres are aware of that
already), one would need to do roughly an update of src/tools/msvc/ to
add a new option path to LLVM, and update install-windows.sgml to add
the new optional dependency.  Note that including LLVM in the builds
means adding conditionally the files part of src/backend/jit/llvm/,
but one can take for example OpenSSL as a model of how it happens.
That would take care of the build.  There may be some
Windows-dependent stuff needed to make JIT work properly on Windows
though.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)  latest in thread

Message-ID: <20200213032540.GA1520@paquier.xyz>
Permalink:  ../20200213032540.GA1520@paquier.xyz/
Also on:    postgresql.org/message-id/20200213032540.GA1520@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, andres@anarazel.de, tgl@sss.pgh.pa.us, josef.simanek@gmail.com, catchall@lightn.org
  Subject: Re: JIT on Windows with Postgres 12.1
  In-Reply-To: <20200213032540.GA1520@paquier.xyz>
  References: <CAB1ky74iFsYSVA+WT5h6iToyis+1FKUGVhNkyLnGNJ9frjXchQ@mail.gmail.com> <CAFp7QwrSRHaVThvNMMv5=J5NZTBwhw9bkmG67yCUL497Cs2atw@mail.gmail.com> <20200212194221.ldmikn5usrfmmsue@alap3.anarazel.de> <11095.1581537296@sss.pgh.pa.us> <20200212200511.iu74lazbhj4tym3l@alap3.anarazel.de> <20200213032540.GA1520@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox