Re: Porting PG Extension from UNIX to Windows

2018-05-08 Thread Alexander Lakhin
Hello Pavel, 08.05.2018 11:19, Pavlo Golub wrote: Cool idea. - Why are you using x86 version of MSYS2? We build PostgresPro for x86 and x64 so I choose to use x86 version as a common denominator to run the same script in 32-bit Windows. (When running on 64-bit Windows any (x86/x64) version of P

Re: Porting PG Extension from UNIX to Windows

2018-05-08 Thread Pavlo Golub
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 >

Re: Porting PG Extension from UNIX to Windows

2018-05-07 Thread Alexander Lakhin
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 exten

Re: Porting PG Extension from UNIX to Windows

2018-05-07 Thread Craig Ringer
On 25 April 2018 at 16:45, insaf.k wrote: > Hello, > > I have developed a postgres extension in Linux. I want to compile it in MS > Windows as well. > > The extension extensively make use of POSIX threads and mutexes. > > I've done some research regarding compiling in Windows. I am not sure in > w

Re: Porting PG Extension from UNIX to Windows

2018-05-07 Thread Pavlo Golub
Greetings, insaf.k. You wrote 25.04.2018, 11:45: > Hello, > I have developed a postgres extension in Linux. I want to compile it in MS > Windows as well. You should try MSYS2. It's far better than VS and MSYS right now. I may try to build your extension if you want. > The extension exten

Re: Porting PG Extension from UNIX to Windows

2018-04-25 Thread Andrew Dunstan
On 04/25/2018 04:45 AM, insaf.k wrote: > Hello, > > I have developed a postgres extension in Linux. I want to compile it > in MS Windows as well.  > > The extension extensively make use of POSIX threads and mutexes. > > I've done some research regarding compiling in Windows. I am not sure > in wh