pg.ddx.io  pgsql-hackers-win32@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Build with Visual Studio & MSVC
7+ messages / 6 participants
[nested] [flat]

* Build with Visual Studio & MSVC
@ 2005-09-09 18:37 Chuck McDevitt <cmcdevitt@greenplum.com>
  2005-09-09 22:05 ` Re: Build with Visual Studio & MSVC xfinger <xfinger@bol.com.br>
  0 siblings, 1 reply; 7+ messages in thread

From: Chuck McDevitt @ 2005-09-09 18:37 UTC (permalink / raw)
  To: pgsql-hackers-win32; +Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>

Just for fun, I went through PostgreSQL 8.1 and did a complete build
using Microsoft's C and the latest Visual Studio.

With a few minor tweaks, everything compiled with no errors.

 

My assumption is that because PostgreSQL is a UNIX/Linux-centric project
(and gcc/gdb centric), this really isn't of much interest to anyone.

So other than this e-mail, I don't plan to do anything with this except
for my own amusement.

 

If I'm wrong, and there is some real interest in supporting MSVC, let me
know, and I'll put some work into cleaning it up and making patches out
of it, etc.

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Build with Visual Studio & MSVC
  2005-09-09 18:37 Build with Visual Studio & MSVC Chuck McDevitt <cmcdevitt@greenplum.com>
@ 2005-09-09 22:05 ` xfinger <xfinger@bol.com.br>
  0 siblings, 0 replies; 7+ messages in thread

From: xfinger @ 2005-09-09 22:05 UTC (permalink / raw)
  To: Chuck McDevitt <cmcdevitt@greenplum.com>; pgsql-hackers-win32

Hi,

Sure there is interest in building with VS, at least i would. VS has great
debugging suport, i
mean the IDE. Would be nice to build Postgresql and psqlODBC under one VS
project.
I wonder if you could share your VS project and patch to do a complete
building?

thanks,

Alexander

-----Mensagem Original-----
De: Chuck McDevitt
Para: pgsql-hackers-win32@postgresql.org
Cc: PostgreSQL-development
Enviada em: sexta-feira, 9 de setembro de 2005 15:37
Assunto: [pgsql-hackers-win32] Build with Visual Studio & MSVC


Just for fun, I went through PostgreSQL 8.1 and did a complete build using
Microsoft's C and the latest Visual Studio.
With a few minor tweaks, everything compiled with no errors.

My assumption is that because PostgreSQL is a UNIX/Linux-centric project
(and gcc/gdb centric), this really isn't of much interest to anyone.
So other than this e-mail, I don't plan to do anything with this except for
my own amusement.

If I'm wrong, and there is some real interest in supporting MSVC, let me
know, and I'll put some work into cleaning it up and making patches out of
it, etc.





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Build with Visual Studio & MSVC
@ 2005-09-09 18:58 Dave Page <dpage@vale-housing.co.uk>
  2005-09-09 19:08 ` Re: Build with Visual Studio & MSVC Joshua D. Drake <jd@commandprompt.com>
  2005-09-09 19:18 ` Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC Andrew Dunstan <andrew@dunslane.net>
  2005-09-10 13:23 ` Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC Jean-Marc EBER <jeanmarc.eber@lexifi.com>
  0 siblings, 3 replies; 7+ messages in thread

From: Dave Page @ 2005-09-09 18:58 UTC (permalink / raw)
  To: Chuck McDevitt <cmcdevitt@greenplum.com>; pgsql-hackers-win32; +Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>

 


________________________________

	From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Chuck McDevitt
	Sent: 09 September 2005 19:38
	To: pgsql-hackers-win32@postgresql.org
	Cc: PostgreSQL-development
	Subject: [HACKERS] Build with Visual Studio & MSVC
	
	

	Just for fun, I went through PostgreSQL 8.1 and did a complete
build using Microsoft's C and the latest Visual Studio.

	With a few minor tweaks, everything compiled with no errors.

	 

	My assumption is that because PostgreSQL is a UNIX/Linux-centric
project (and gcc/gdb centric), this really isn't of much interest to
anyone.

	So other than this e-mail, I don't plan to do anything with this
except for my own amusement.

	 

	If I'm wrong, and there is some real interest in supporting
MSVC, let me know, and I'll put some work into cleaning it up and making
patches out of it, etc. 

	 

Hi Chuck,

 

We discussed this again on list only the other day in fact! Basically
we're not particulalry interested in supporting VS prject files in place
of gmake/autoconf, purely because they will undoubtedly cause
maintenance headaches as the majority of our developers don't have
Windows boxes, let alone a copy of Visual Studio. 

 

However, if you need something to keep yourself amused (unless I can
persuade you to come help out with psqlODBC :-) ), we would be
interested in patches that allow us to use Microsoft's compiler as an
alternative to gcc.

 

It's interesting to know it built fairly easily though...

 

Regards, Dave.

 

 

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Build with Visual Studio & MSVC
  2005-09-09 18:58 Re: Build with Visual Studio & MSVC Dave Page <dpage@vale-housing.co.uk>
@ 2005-09-09 19:08 ` Joshua D. Drake <jd@commandprompt.com>
  2 siblings, 0 replies; 7+ messages in thread

From: Joshua D. Drake @ 2005-09-09 19:08 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Chuck McDevitt <cmcdevitt@greenplum.com>; pgsql-hackers-win32@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>


> However, if you need something to keep yourself amused (unless I can 
> persuade you to come help out with psqlODBC :-) ), we would be 
> interested in patches that allow us to use Microsoft's compiler as an 
> alternative to gcc.
> 
>  
> 
> It's interesting to know it built fairly easily though...

What would be of interest to me, would be to know if there is an actual
gain to compiling with the Microsoft compiler. I understand the 
maintenance issues but if the Microsoft compiler gives us 25% better
performance on Win32 then Mingw...

Sincerely,

Joshua D. Drake



> 
>  
> 
> Regards, Dave.
> 
>  
> 
>  
> 


-- 
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
  2005-09-09 18:58 Re: Build with Visual Studio & MSVC Dave Page <dpage@vale-housing.co.uk>
@ 2005-09-09 19:18 ` Andrew Dunstan <andrew@dunslane.net>
  2 siblings, 0 replies; 7+ messages in thread

From: Andrew Dunstan @ 2005-09-09 19:18 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Chuck McDevitt <cmcdevitt@greenplum.com>; pgsql-hackers-win32@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>



Dave Page wrote:

>
>     Just for fun, I went through PostgreSQL 8.1 and did a complete
>     build using Microsoft’s C and the latest Visual Studio.
>
>     With a few minor tweaks, everything compiled with no errors.
>
>     My assumption is that because PostgreSQL is a UNIX/Linux-centric
>     project (and gcc/gdb centric), this really isn’t of much interest
>     to anyone.
>
>     So other than this e-mail, I don’t plan to do anything with this
>     except for my own amusement.
>
>     If I’m wrong, and there is some real interest in supporting MSVC,
>     let me know, and I’ll put some work into cleaning it up and making
>     patches out of it, etc.
>
> Hi Chuck,
>
> We discussed this again on list only the other day in fact! Basically 
> we're not particulalry interested in supporting VS prject files in 
> place of gmake/autoconf, purely because they will undoubtedly cause 
> maintenance headaches as the majority of our developers don't have 
> Windows boxes, let alone a copy of Visual Studio.
>
> However, if you need something to keep yourself amused (unless I can 
> persuade you to come help out with psqlODBC :-) ), we would be 
> interested in patches that allow us to use Microsoft's compiler as an 
> alternative to gcc.
>
> It's interesting to know it built fairly easily though...
>


There is also a pgfoundry project for maintaining Visual Studio project 
files. see http://pgfoundry.org/projects/vcproject/


cheers

andrew





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
  2005-09-09 18:58 Re: Build with Visual Studio & MSVC Dave Page <dpage@vale-housing.co.uk>
@ 2005-09-10 13:23 ` Jean-Marc EBER <jeanmarc.eber@lexifi.com>
  2 siblings, 0 replies; 7+ messages in thread

From: Jean-Marc EBER @ 2005-09-10 13:23 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Chuck McDevitt <cmcdevitt@greenplum.com>; pgsql-hackers-win32@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>

Hi all,

A remark linked to the preceding discussion:

Even if I could find some interest in compiling postgresql with Microsoft’s C 
compiler, I understand the technical and organizational difficulties implied by 
such a feature. If I want to rebuild from sources postgresql, I have to go the 
developers way, here use the mingw toolchain.

I think that writing _extensions_ for postgresql is another story.

Even before version 8.0, the binary win32/cygwin distribution contained 
precompiled libraries for client side programming with VisualC. This allows you 
to write postgresql client code in VC _and_ without rebuilding postgresql yourself.

Something similar (I think it has been discussed earlier but don’t remember the 
decisions) should exist for writing UDFs (stored procedures, the main reason for 
our use of postgresql compared to commercial databases where this feature is 
generally badly documented, to say the least). It would be nice if this was 
possible _without_ rebuilding postgresql from sources. This would imply that the 
binary native win32 distribution of postgresql contains (or that a supplementary 
package exists) the libraries (and headers) that are necessary. Having these 
libraries in mingw format would be nice, having them for VC++ would probably be 
very helpful to some of us.

Jean-Marc


Dave Page wrote:
>  
> 
>     ------------------------------------------------------------------------
>     *From:* pgsql-hackers-owner@postgresql.org
>     [mailto:pgsql-hackers-owner@postgresql.org] *On Behalf Of *Chuck
>     McDevitt
>     *Sent:* 09 September 2005 19:38
>     *To:* pgsql-hackers-win32@postgresql.org
>     *Cc:* PostgreSQL-development
>     *Subject:* [HACKERS] Build with Visual Studio & MSVC
> 
>     Just for fun, I went through PostgreSQL 8.1 and did a complete build
>     using Microsoft’s C and the latest Visual Studio.
> 
>     With a few minor tweaks, everything compiled with no errors.
> 
>      
> 
>     My assumption is that because PostgreSQL is a UNIX/Linux-centric
>     project (and gcc/gdb centric), this really isn’t of much interest to
>     anyone.
> 
>     So other than this e-mail, I don’t plan to do anything with this
>     except for my own amusement.
> 
>      
> 
>     If I’m wrong, and there is some real interest in supporting MSVC,
>     let me know, and I’ll put some work into cleaning it up and making
>     patches out of it, etc. 
> 
>      
> 
> Hi Chuck,
> 
>  
> 
> We discussed this again on list only the other day in fact! Basically 
> we're not particulalry interested in supporting VS prject files in place 
> of gmake/autoconf, purely because they will undoubtedly cause 
> maintenance headaches as the majority of our developers don't have 
> Windows boxes, let alone a copy of Visual Studio.
> 
>  
> 
> However, if you need something to keep yourself amused (unless I can 
> persuade you to come help out with psqlODBC :-) ), we would be 
> interested in patches that allow us to use Microsoft's compiler as an 
> alternative to gcc.
> 
>  
> 
> It's interesting to know it built fairly easily though...
> 
>  
> 
> Regards, Dave.
> 
>  
> 
>  
> 





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
@ 2005-09-10 14:29 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 7+ messages in thread

From: Dave Page @ 2005-09-10 14:29 UTC (permalink / raw)
  To: jeanmarc.eber@lexifi.com; dpage@vale-housing.co.uk; +Cc: cmcdevitt@greenplum.com; pgsql-hackers-win32; pgsql-hackers@postgresql.org


-----Original Message-----
From: "Jean-Marc EBER"<jeanmarc.eber@lexifi.com>
Sent: 10/09/05 14:26:15
To: "Dave Page"<dpage@vale-housing.co.uk>
Cc: "Chuck McDevitt"<cmcdevitt@greenplum.com>, "pgsql-hackers-win32@postgresql.org"<pgsql-hackers-win32@postgresql.org>, "PostgreSQL-development"<pgsql-hackers@postgresql.org>
Subject: Re: [pgsql-hackers-win32] [HACKERS] Build with Visual Studio & MSVC

>. This would imply that the 
> binary native win32 distribution of 
> postgresql contains (or that a 
> supplementary 
> package exists) the libraries (and headers) > that are necessary. Having these 
> libraries in mingw format would be nice, 
> having them for VC++ would probably be 
> very helpful to some of us.

Err, they (libpq and ecpglib) are included in both formats. Admittedley 8.0 missed some headers, but that is already fixed for 8.1. 

Regards, Dave

-----Unmodified Original Message-----
Hi all,

A remark linked to the preceding discussion:

Even if I could find some interest in compiling postgresql with Microsoft’s C 
compiler, I understand the technical and organizational difficulties implied by 
such a feature. If I want to rebuild from sources postgresql, I have to go the 
developers way, here use the mingw toolchain.

I think that writing _extensions_ for postgresql is another story.

Even before version 8.0, the binary win32/cygwin distribution contained 
precompiled libraries for client side programming with VisualC. This allows you 
to write postgresql client code in VC _and_ without rebuilding postgresql yourself.

Something similar (I think it has been discussed earlier but don’t remember the 
decisions) should exist for writing UDFs (stored procedures, the main reason for 
our use of postgresql compared to commercial databases where this feature is 
generally badly documented, to say the least). It would be nice if this was 
possible _without_ rebuilding postgresql from sources. This would imply that the 
binary native win32 distribution of postgresql contains (or that a supplementary 
package exists) the libraries (and headers) that are necessary. Having these 
libraries in mingw format would be nice, having them for VC++ would probably be 
very helpful to some of us.

Jean-Marc


Dave Page wrote:
>  
> 
>     ------------------------------------------------------------------------
>     *From:* pgsql-hackers-owner@postgresql.org
>     [mailto:pgsql-hackers-owner@postgresql.org] *On Behalf Of *Chuck
>     McDevitt
>     *Sent:* 09 September 2005 19:38
>     *To:* pgsql-hackers-win32@postgresql.org
>     *Cc:* PostgreSQL-development
>     *Subject:* [HACKERS] Build with Visual Studio & MSVC
> 
>     Just for fun, I went through PostgreSQL 8.1 and did a complete build
>     using Microsoft’s C and the latest Visual Studio.
> 
>     With a few minor tweaks, everything compiled with no errors.
> 
>      
> 
>     My assumption is that because PostgreSQL is a UNIX/Linux-centric
>     project (and gcc/gdb centric), this really isn’t of much interest to
>     anyone.
> 
>     So other than this e-mail, I don’t plan to do anything with this
>     except for my own amusement.
> 
>      
> 
>     If I’m wrong, and there is some real interest in supporting MSVC,
>     let me know, and I’ll put some work into cleaning it up and making
>     patches out of it, etc. 
> 
>      
> 
> Hi Chuck,
> 
>  
> 
> We discussed this again on list only the other day in fact! Basically 
> we're not particulalry interested in supporting VS prject files in place 
> of gmake/autoconf, purely because they will undoubtedly cause 
> maintenance headaches as the majority of our developers don't have 
> Windows boxes, let alone a copy of Visual Studio.
> 
>  
> 
> However, if you need something to keep yourself amused (unless I can 
> persuade you to come help out with psqlODBC :-) ), we would be 
> interested in patches that allow us to use Microsoft's compiler as an 
> alternative to gcc.
> 
>  
> 
> It's interesting to know it built fairly easily though...
> 
>  
> 
> Regards, Dave.
> 
>  
> 
>  
> 





^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2005-09-10 14:29 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-09 18:37 Build with Visual Studio & MSVC Chuck McDevitt <cmcdevitt@greenplum.com>
2005-09-09 22:05 ` xfinger <xfinger@bol.com.br>
2005-09-09 18:58 Re: Build with Visual Studio & MSVC Dave Page <dpage@vale-housing.co.uk>
2005-09-09 19:08 ` Joshua D. Drake <jd@commandprompt.com>
2005-09-09 19:18 ` Andrew Dunstan <andrew@dunslane.net>
2005-09-10 13:23 ` Jean-Marc EBER <jeanmarc.eber@lexifi.com>
2005-09-10 14:29 Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC Dave Page <dpage@vale-housing.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox