Dear Bruce san.

I think that a certain user has a meaning as for this client construction.
There is a user who demands to build only by Microsoft thoroughly.
However, it may be ignored if support load is disliked. What is necessary will be just to remain in a mail archive, even if this is not applied.


Thanks.!

Regards,
Hiroshi Saito
--- doc/src/sgml/install-win32.sgml.orig        Fri Jan  6 14:09:29 2006
+++ doc/src/sgml/install-win32.sgml     Fri Jan  6 15:06:49 2006
@@ -83,13 +83,27 @@
   </varlistentry>

   <varlistentry>
+    <term><filename>bin\pg_config\Release\pg_config.exe</filename></term>
    <term><filename>bin\psql\Release\psql.exe</filename></term>
+    <term><filename>bin\pg_dump\Release\pg_dump.exe</filename></term>
+    <term><filename>bin\pg_dump\Release\pg_dumpall.exe</filename></term>
+    <term><filename>bin\pg_dump\Release\pg_restore.exe</filename></term>
+    <term><filename>bin\scripts\Release\clusterdb.exe</filename></term>
+    <term><filename>bin\scripts\Release\createdb.exe</filename></term>
+    <term><filename>bin\scripts\Release\createuser.exe</filename></term>
+    <term><filename>bin\scripts\Release\createlang.exe</filename></term>
+    <term><filename>bin\scripts\Release\dropdb.exe</filename></term>
+    <term><filename>bin\scripts\Release\dropuser.exe</filename></term>
+    <term><filename>bin\scripts\Release\droplang.exe</filename></term>
+    <term><filename>bin\scripts\Release\vacuumdb.exe</filename></term>
+    <term><filename>bin\scripts\Release\reindexdb.exe</filename></term>
    <listitem>
     <para>
-      The <productname>PostgreSQL</productname> interactive terminal
+     The <productname>PostgreSQL</productname> client applications and 
utilities.
     </para>
    </listitem>
   </varlistentry>
+
  </variablelist>
 </para>

--- src/bin/pg_dump/pg_backup_archiver.c.orig   Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_backup_archiver.c        Thu Jan  5 15:10:50 2006
@@ -27,7 +27,10 @@
#include "dumputils.h"

#include <ctype.h>
+
+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif

#ifdef WIN32
#include <io.h>
--- src/bin/pg_dump/pg_backup_db.c.orig Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_backup_db.c      Thu Jan  5 15:11:01 2006
@@ -15,7 +15,10 @@
#include "pg_backup_db.h"
#include "dumputils.h"

+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif
+
#include <ctype.h>

#ifdef HAVE_TERMIOS_H
--- src/bin/pg_dump/pg_backup_null.c.orig       Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_backup_null.c    Thu Jan  5 15:11:13 2006
@@ -25,7 +25,9 @@
#include "pg_backup.h"
#include "pg_backup_archiver.h"

+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>                               /* for dup */
+#endif

#include "libpq/libpq-fs.h"

--- src/bin/pg_dump/pg_backup_tar.c.orig        Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_backup_tar.c     Thu Jan  5 15:11:25 2006
@@ -27,7 +27,10 @@

#include <ctype.h>
#include <limits.h>
+
+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif

static void _ArchiveEntry(ArchiveHandle *AH, TocEntry *te);
static void _StartData(ArchiveHandle *AH, TocEntry *te);
--- src/bin/pg_dump/pg_dump.c.orig      Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_dump.c   Thu Jan  5 15:11:36 2006
@@ -24,7 +24,10 @@
 */
#include "postgres.h"

+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif
+
#include <ctype.h>
#ifdef ENABLE_NLS
#include <locale.h>
--- src/bin/pg_dump/pg_dumpall.c.orig   Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_dumpall.c        Thu Jan  5 15:11:54 2006
@@ -14,7 +14,11 @@
#include "postgres_fe.h"

#include <time.h>
+
+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif
+
#ifdef ENABLE_NLS
#include <locale.h>
#endif
--- src/bin/pg_dump/pg_restore.c.orig   Thu Jan  5 15:09:55 2006
+++ src/bin/pg_dump/pg_restore.c        Thu Jan  5 15:12:06 2006
@@ -53,7 +53,9 @@
#include <termios.h>
#endif

+#ifndef WIN32_CLIENT_ONLY
#include <unistd.h>
+#endif

#include "getopt_long.h"

--- src/bin/pg_dump/win32.mak.orig      Thu Jan  5 15:20:24 2006
+++ src/bin/pg_dump/win32.mak   Fri Jan  6 10:49:49 2006
@@ -0,0 +1,186 @@
+# Makefile for Microsoft Visual C++ 5.0 (or compat)
+
+!IF "$(OS)" == "Windows_NT"
+NULL=
+!ELSE +NULL=nul +!ENDIF +
+CPP=cl.exe
+PERL=perl.exe
+FLEX=flex.exe
+YACC=bison.exe
+MV=move
+
+!IFDEF DEBUG
+OPT=/Od /Zi /MDd
+LOPT=/DEBUG
+DEBUGDEF=/D _DEBUG
+OUTDIR=.\Debug
+INTDIR=.\Debug
+!ELSE
+OPT=/O2 /MD
+LOPT=
+DEBUGDEF=/D NDEBUG
+OUTDIR=.\Release
+INTDIR=.\Release
+!ENDIF
+
+REFDOCDIR= ../../../doc/src/sgml/ref
+
+CPP_PROJ=/nologo $(OPT) /W3 /GX /D "WIN32" $(DEBUGDEF) /D "_CONSOLE" /D\
+ "_MBCS" /Fp"$(INTDIR)\pg_dump.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD 
/c \
+ /I ..\..\include /I ..\..\interfaces\libpq /I ..\..\include\port\win32 /I 
..\..\backend \
+ /D "HAVE_STRDUP" /D "FRONTEND"
+
+CPP_OBJS=$(INTDIR)/
+CPP_SBRS=.
+
+ALL : ..\..\backend\parser\parse.h "..\..\port\pg_config_paths.h" \
+ "$(OUTDIR)\pg_dump.exe" "$(OUTDIR)\pg_dumpall.exe" "$(OUTDIR)\pg_restore.exe"
+
+CLEAN :
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_archiver.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_db.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_custom.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_files.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_null.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_backup_tar.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\dumputils.obj"
+ [EMAIL PROTECTED] "$(INTDIR)\common.obj" + [EMAIL PROTECTED] "$(INTDIR)\pg_dump_sort.obj" + [EMAIL PROTECTED] "$(INTDIR)\keywords.obj" + [EMAIL PROTECTED] "$(INTDIR)\exec.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\getopt.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\getopt_long.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\path.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pgstrcasecmp.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\sprompt.obj"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_dump.pch"
+       [EMAIL PROTECTED] "$(OUTDIR)\pg_dump.obj"
+       [EMAIL PROTECTED] "$(OUTDIR)\pg_dump.exe"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_dumpall.obj"
+       [EMAIL PROTECTED] "$(OUTDIR)\pg_dumpall.exe"
+       [EMAIL PROTECTED] "$(INTDIR)\pg_restore.obj"
+       [EMAIL PROTECTED] "$(OUTDIR)\pg_restore.exe"
+#      [EMAIL PROTECTED] "$(INTDIR)\..\..\port\pg_config_paths.h"
+# [EMAIL PROTECTED] "$(INTDIR)\..\..\backend\parser\parse.h" +# [EMAIL PROTECTED] "$(INTDIR)\..\..\backend\parser\gram.c"
+
+LINK32=link.exe
+LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
+ advapi32.lib shfolder.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
+ odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:no
+LINK32_FLAGS_DMP= \
+ /pdb:"$(OUTDIR)\pg_dump.pdb" /machine:I386 $(LOPT) 
/out:"$(OUTDIR)\pg_dump.exe"
+LINK32_FLAGS_ALL= \
+ /pdb:"$(OUTDIR)\pg_dumpall.pdb" /machine:I386 $(LOPT) 
/out:"$(OUTDIR)\pg_dumpall.exe"
+LINK32_FLAGS_RES= \
+ /pdb:"$(OUTDIR)\pg_restore.pdb" /machine:I386 $(LOPT) 
/out:"$(OUTDIR)\pg_restore.exe"
+
+LINK32_OBJS= \
+       "$(INTDIR)\pg_backup_archiver.obj" \
+       "$(INTDIR)\pg_backup_db.obj" \
+       "$(INTDIR)\pg_backup_custom.obj" \
+       "$(INTDIR)\pg_backup_files.obj" \
+       "$(INTDIR)\pg_backup_null.obj" \
+       "$(INTDIR)\pg_backup_tar.obj" \
+       "$(INTDIR)\dumputils.obj" \
+       "$(INTDIR)\keywords.obj" \
+       "$(INTDIR)\exec.obj" \
+       "$(INTDIR)\getopt.obj" \
+       "$(INTDIR)\getopt_long.obj" \
+       "$(INTDIR)\path.obj" \
+       "$(INTDIR)\pgstrcasecmp.obj" \
+       "$(INTDIR)\sprompt.obj"
+
+LINK32_OBJS_DMP= \
+       "$(INTDIR)\common.obj" \
+       "$(INTDIR)\pg_dump_sort.obj" \
+       "$(INTDIR)\pg_dump.obj"
+LINK32_OBJS_RES= "$(INTDIR)\pg_restore.obj"
+LINK32_OBJS_ALL= "$(INTDIR)\pg_dumpall.obj"
+
+!IFDEF DEBUG
+LINK32_OBJS    = $(LINK32_OBJS) "..\..\interfaces\libpq\Debug\libpqddll.lib"
+!ELSE
+LINK32_OBJS    = $(LINK32_OBJS) "..\..\interfaces\libpq\Release\libpqdll.lib"
+!ENDIF
+
+"..\..\port\pg_config_paths.h": + echo #define PGBINDIR "" >$@
+       echo #define PGSHAREDIR "" >>$@
+       echo #define SYSCONFDIR "" >>$@
+       echo #define INCLUDEDIR "" >>$@
+       echo #define PKGINCLUDEDIR "" >>$@
+       echo #define INCLUDEDIRSERVER "" >>$@
+       echo #define LIBDIR "" >>$@
+       echo #define PKGLIBDIR "" >>$@
+       echo #define LOCALEDIR "" >>$@
+       echo #define DOCDIR "" >>$@
+       echo #define MANDIR "" >>$@
+
+"$(OUTDIR)" :
+    if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
+
+"$(OUTDIR)\pg_dump.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) 
$(LINK32_OBJS_DMP)
+    $(LINK32) @<<
+  $(LINK32_FLAGS) $(LINK32_FLAGS_DMP) $(LINK32_OBJS) $(LINK32_OBJS_DMP)
+<<
+
+"$(OUTDIR)\pg_dumpall.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) 
$(LINK32_OBJS_ALL)
+    $(LINK32) @<<
+  $(LINK32_FLAGS) $(LINK32_FLAGS_ALL) $(LINK32_OBJS) $(LINK32_OBJS_ALL)
+<<
+
+"$(OUTDIR)\pg_restore.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) 
$(LINK32_OBJS_RES)
+    $(LINK32) @<<
+  $(LINK32_FLAGS) $(LINK32_FLAGS_RES) $(LINK32_OBJS) $(LINK32_OBJS_RES)
+<<
+
+"$(INTDIR)\keywords.obj" : ..\..\backend\parser\keywords.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\backend\parser\keywords.c
+<<
+
+"$(INTDIR)\exec.obj" : ..\..\port\exec.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\exec.c
+<<
+
+"$(INTDIR)\getopt.obj" : "$(INTDIR)" ..\..\port\getopt.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\getopt.c
+<<
+
+"$(INTDIR)\getopt_long.obj" : "$(INTDIR)" ..\..\port\getopt_long.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\getopt_long.c
+<<
+
+"$(INTDIR)\path.obj" : "$(INTDIR)" ..\..\port\path.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\path.c
+<<
+
+"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\pgstrcasecmp.c
+<<
+
+"$(INTDIR)\sprompt.obj" : "$(INTDIR)" ..\..\port\sprompt.c
+    $(CPP) @<<
+    $(CPP_PROJ) ..\..\port\sprompt.c
+<<
+
+..\..\backend\parser\parse.h : ..\..\backend\parser\gram.y
+       $(YACC) -y -d  ..\..\backend\parser\gram.y
+ $(MV) ..\..\backend\parser\y.tab.h ..\..\backend\parser\parse.h + $(MV) ..\..\backend\parser\y.tab.c ..\..\backend\parser\gram.c
+
+.c{$(CPP_OBJS)}.obj::
+   $(CPP) @<<
+ $(CPP_PROJ) $< +<<
+
+
--- src/win32.mak.orig  Thu Jan  5 15:18:30 2006
+++ src/win32.mak       Fri Jan  6 13:32:54 2006
@@ -18,6 +18,10 @@
   nmake /f win32.mak $(MAKEMACRO)
   cd ..\..\bin\psql
   nmake /f win32.mak $(MAKEMACRO)
+   cd ..\..\bin\pg_dump
+   nmake /f win32.mak $(MAKEMACRO)
+   cd ..\..\bin\scripts
+   nmake /f win32.mak $(MAKEMACRO)
   cd ..\..\bin\pg_config
   nmake /f win32.mak $(MAKEMACRO)
   cd ..\..
@@ -27,6 +31,10 @@
   cd interfaces\libpq
   nmake /f win32.mak CLEAN
   cd ..\..\bin\psql
+   nmake /f win32.mak CLEAN
+   cd ..\..\bin\pg_dump
+   nmake /f win32.mak CLEAN
+   cd ..\..\bin\scripts
   nmake /f win32.mak CLEAN
   cd ..\..\bin\pg_config
   nmake /f win32.mak CLEAN
--- src/include/pg_config.h.win32.orig  Thu Jan  5 15:13:30 2006
+++ src/include/pg_config.h.win32       Thu Jan  5 15:18:09 2006
@@ -23,6 +23,9 @@
#define HAVE_RANDOM
#endif

+#define INT64_FORMAT "%I64d"
+#define HAVE_DECL_VSNPRINTF 1
+
/* use _snprintf and _vsnprintf */
#define HAVE_DECL_SNPRINTF 1
#define snprintf        _snprintf
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

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

Reply via email to