Re: Compiling extensions on Windows - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: Compiling extensions on Windows
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17C8EA3D@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Compiling extensions on Windows  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
Craig Ringer wrote:
> Out of personal interest (in pain and suffering) I was recently looking
> into how to compile extensions out-of-tree on Windows using Visual
> Studio (i.e. no PGXS).
> 
> It looks like the conventional answer to this is "Do a source build of
> PG, compile your ext in-tree in contrib/, and hope the result is binary
> compatible with release PostgreSQL builds for Windows". Certainly that's
> how I've been doing it to date.
> 
> How about everyone else here? Does anyone actually build and distribute
> extensions out of tree at all?

I build binaries for oracle_fdw for EDB's binaries "by hand",
i.e. I look at what PGXS does on Linux and try to do something
comparable with "cl".  It's rather painful, and something like
PGXS for MSVC would be very welcome.

Yours,
Laurenz Albe

pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: [bug fix] multibyte messages are displayed incorrectly on the client
Next
From: Dave Chinner
Date:
Subject: Re: [Lsf-pc] Linux kernel impact on PostgreSQL performance