Re: Porting PG Extension from UNIX to Windows

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: Porting PG Extension from UNIX to Windows
Дата
Msg-id 28b3aa53-8804-8e9a-3bcf-f688f4c5756d@gmail.com
обсуждение исходный текст
Ответ на Porting PG Extension from UNIX to Windows  ("insaf.k" <insaf.k@zohocorp.com>)
Ответы Re: Porting PG Extension from UNIX to Windows  (Pavlo Golub <pavlo.golub@cybertec.at>)
Список pgsql-hackers
25.04.2018 11:45, insaf.k wrote:
I've done some research regarding compiling in Windows. I am not sure in what way I should compile the extension. AFAIK, Visual Studio is not POSIX compliant and so I'll have to rewrite all those POSIX calls using Windows API. So it's better to compile the extension in Cygwin.

I have some questions regarding compiling the extension in Cygwin. Do I have to build PG in Cygwin, if I want to compile the extension in Cygwin?
I think it might depend on the extension, but we have managed to use mingw-compiled extension with VS-compiled PG. Please look at the demo script:
https://pastebin.com/3jQahYNe
If you have any questions, please don't hesitate to ask.

Best regards,

------
Alexander Lakhin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: no partition pruning when partitioning using array type
Следующее
От: Michael Paquier
Дата:
Сообщение: Exposing guc_malloc/strdup/realloc for plugins?