Unix Technical Forum

Re: Call for 7.5 feature completion

This is a discussion on Re: Call for 7.5 feature completion within the pgsql Hackers forums, part of the PostgreSQL category; --> > > I think the most popular method to build a project on Win32 > is using > > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 06:33 AM
Magnus Hagander
 
Posts: n/a
Default Re: Call for 7.5 feature completion

> > I think the most popular method to build a project on Win32
> is using
> > MSVC or Intel C. Intel C can be integrated with MSVC's IDE to help
> > developers increase their productivity. Actually I have

> tried to make
> > the backend of pgsql-8.0.3 build with MSVC 6.0, and it works well.
> > Should I polish it and send it as a patch?
> >
> > Having been a Win32 developer for several years, I think it is more
> > convenient to use MSVC's IDE than CL.exe with NMAKE.exe.
> > Although I do not like Microsoft very much, and like to use

> MinGW or
> > Cygwin to do some small tests, MSVC is more suitable for

> native Win32
> > development. If pgsql want to be the first class citizen on

> Windows,
> > and want to compete with MySQL, I think supporting MSVC is

> important.
> > I beleive there will be many contributions from the Win32 world.

>
> I think supporting MSVC is important, certainly (though I
> think that supporting the Intel compiler is even better, as
> the only compelling reason, IMO, to switch for the server end
> is generated code quality). But that's very different from
> supporting visual studio.
>
> I've been doing cross-platform development on a big codebase
> for years, and the idea of trying to use the proprietary
> build environments on each platform, and expecting to keep
> them sufficiently in-sync that the end result is actually
> comparable on each platform is laughable. And that's on a
> much smaller, simpler codebase than PG with a much smaller,
> more integrated development team.
>
> I use gmake or cons everywhere. On Windows I run them under
> cygwin and have them call the MSVC commandline compiler. It
> all works fine. And it doesn't stop me from using Visual
> Studio to edit the code, run the debugger or anything like
> that. On OS X I can use XCode. On Solaris I use the Forte
> environment. On Linux I use emacs and gcc. And that's all on
> the same codebase with the same makefile checked out from the
> same CVS repository.


I think the main problem with switching to visual studio project files
is maintainabilty. (It's not easy to get all the custom actions used to
build some parts running in VS, but i'm su8re you can do it). The core
development is done on Unix, and if you can't use the same Makefiles
it's only a matter of time (and I bet very short time) before the VS
files would be broken compared to the "main ones" etc. Win32 is a much
more "first class citizen" now that it builds with gmake than it would
be then.

Building with the VC compiler using GNU makefiles is a whole different
story - if that can be made to work reasonably easily it would be a
worthwhile goal (in my experience, for example, the VSEE compiler
optimises things a whole lot better than gcc on win32). I just don't see
the payoff in getting rid of make.


//Magnus

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 06:33 AM
Tom Lane
 
Posts: n/a
Default Re: Call for 7.5 feature completion

"Magnus Hagander" <mha@sollentuna.net> writes:
> Building with the VC compiler using GNU makefiles is a whole different
> story - if that can be made to work reasonably easily it would be a
> worthwhile goal (in my experience, for example, the VSEE compiler
> optimises things a whole lot better than gcc on win32). I just don't see
> the payoff in getting rid of make.


+1 here. It's already enough of a pain in the neck taking care of the
Windows-specific build support for libpq and psql; we're not going to
take on maintaining a complete parallel build infrastructure for a
proprietary platform. (In fact, there's been serious discussion of
dropping the Windows-specific build scripts that are there now, as
it's not clear why they are still needed when you can build the stuff
in mingw and then use it elsewhere.) But we already deal with lots of
different compilers, so one more shouldn't be a problem --- as long as
you can drive it with gmake.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 06:35 AM
Peter Eisentraut
 
Posts: n/a
Default Re: Call for 7.5 feature completion

Magnus Hagander wrote:
> Building with the VC compiler using GNU makefiles is a whole
> different story - if that can be made to work reasonably easily it
> would be a worthwhile goal


The main problem is that the VC compiler uses completely different
command-line options than a typical Unix compiler. I recall that there
is a wrapper script out there, which would surely be a good starting
point for someone investigating this.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com