Re: Porting PG Extension from UNIX to Windows - Mailing list pgsql-hackers

From Pavlo Golub
Subject Re: Porting PG Extension from UNIX to Windows
Date
Msg-id 1882938967.20180508111939@cybertec.at
Whole thread Raw
In response to Re: Porting PG Extension from UNIX to Windows  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: Porting PG Extension from UNIX to Windows  (Alexander Lakhin <exclusion@gmail.com>)
List pgsql-hackers
Greetings, Alexander.

You wrote 08.05.2018, 9:42:

> 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.

Cool idea.

- Why are you using x86 version of MSYS2?
- And why don't you use just msys2-x86_64-latest.tar.xz instead of
exactly named one?

>   
>   Best         regards,
>     
>  ------ 
>            Alexander Lakhin 
>            Postgres Professional: http://www.postgrespro.com  
>            The Russian Postgres Company
>   



-- 
Kind regards,
 Pavlo                          mailto:pavlo.golub@cybertec.at



pgsql-hackers by date:

Previous
From: Oleksandr Shulgin
Date:
Subject: Setting libpq TCP keepalive parameters from environment
Next
From: Alexander Lakhin
Date:
Subject: Re: Porting PG Extension from UNIX to Windows