Re: Extensions User Design - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Extensions User Design
Date
Msg-id 87hby48xgx.fsf@hi-media-techno.com
Whole thread Raw
In response to Re: Extensions User Design  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> We do it for Makefiles in contrib, so in theory it should be doable.

Excellent!

> The problem is, I think, that the Makefile format is way too flexible.
> You can write anything as shell commands in there, and there is no way
> we can ever parse that and make it work in the msvc build system. I
> haven't read the pgxs docs in a while so I don't know if it makes
> restrictions on this, but AFAIK there are no technical reasons
> preventing people from doing this.

Well if the consequence of using random unix invocations in the Makefile
(which is otherwise quite short for simple extensions) is that the
extension won't work in windows, that means the burden is on the
extension author. We can't force them to write windows compatible code
in the first place, I presume.

It sounds like PGXS dependancy is the way to go, knowing that some perl
magic will have to get from the Makefile to the .project. Right?
-- 
dim


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Extensions User Design
Next
From: Simon Riggs
Date:
Subject: Re: Why does pg_standby require libpq.so.5?