X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5EA6CD8622 for ; Sat, 10 Sep 2005 10:26:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93819-06 for ; Sat, 10 Sep 2005 13:26:11 +0000 (GMT) Received: from smtp7.wanadoo.fr (smtp7.wanadoo.fr [193.252.22.24]) by svr1.postgresql.org (Postfix) with ESMTP id C4361D6E2A for ; Sat, 10 Sep 2005 10:26:12 -0300 (ADT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0704.wanadoo.fr (SMTP Server) with ESMTP id 0B4C314000B6 for ; Sat, 10 Sep 2005 15:26:14 +0200 (CEST) Received: from lexifi.com (ATuileries-151-1-40-34.w82-123.abo.wanadoo.fr [82.123.124.34]) by mwinf0704.wanadoo.fr (SMTP Server) with ESMTP id 6CE6714000AE; Sat, 10 Sep 2005 15:26:13 +0200 (CEST) X-ME-UUID: 20050910132613446.6CE6714000AE@mwinf0704.wanadoo.fr Message-ID: <4322DE5A.7090709@lexifi.com> Date: Sat, 10 Sep 2005 15:23:38 +0200 From: Jean-Marc EBER User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Chuck McDevitt , pgsql-hackers-win32@postgresql.org, PostgreSQL-development Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/529 X-Sequence-Number: 72926 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. > > > > >