Re: Extensions User Design

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Extensions User Design
Дата
Msg-id 87hby48xgx.fsf@hi-media-techno.com
обсуждение исходный текст
Ответ на Re: Extensions User Design  (Magnus Hagander <magnus@hagander.net>)
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Extensions User Design
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Why does pg_standby require libpq.so.5?