Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
58634caa
Commit
58634caa
authored
Feb 12, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MSVC support for utility commands and pg_dump.
Hiroshi Saito
parent
025ffe58
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
241 additions
and
10 deletions
+241
-10
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+16
-2
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+4
-1
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.c
+4
-1
src/bin/pg_dump/pg_backup_null.c
src/bin/pg_dump/pg_backup_null.c
+3
-1
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_backup_tar.c
+4
-1
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+4
-1
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+5
-1
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+3
-1
src/bin/pg_dump/win32.mak
src/bin/pg_dump/win32.mak
+186
-0
src/include/pg_config.h.win32
src/include/pg_config.h.win32
+3
-0
src/win32.mak
src/win32.mak
+9
-1
No files found.
doc/src/sgml/install-win32.sgml
View file @
58634caa
<!--
$PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.2
6 2005/05/13 15:21:59 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.2
7 2006/02/12 06:11:50 momjian
Exp $
-->
<chapter id="install-win32">
...
...
@@ -83,13 +83,27 @@ $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.26 2005/05/13 15:21:59 tg
</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
View file @
58634caa
...
...
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.12
2 2006/02/12 04:04:32
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.12
3 2006/02/12 06:11:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.6
8 2006/02/09 18:28:29 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.6
9 2006/02/12 06:11:50 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -17,7 +17,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_null.c,v 1.1
6 2005/10/15 02:49:38
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_null.c,v 1.1
7 2006/02/12 06:11:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -16,7 +16,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.
49 2005/10/15 02:49:38
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.
50 2006/02/12 06:11:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.42
8 2006/02/12 03:22:18
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.42
9 2006/02/12 06:11:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.7
0 2006/02/12 03:22:19
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.7
1 2006/02/12 06:11:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
View file @
58634caa
...
...
@@ -34,7 +34,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.7
5 2006/02/12 04:07:25
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.7
6 2006/02/12 06:11:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
0 → 100644
View file @
58634caa
# 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
=
.
\D
ebug
INTDIR
=
.
\D
ebug
!ELSE
OPT
=
/O2 /MD
LOPT
=
DEBUGDEF
=
/D NDEBUG
OUTDIR
=
.
\R
elease
INTDIR
=
.
\R
elease
!ENDIF
REFDOCDIR
=
../../../doc/src/sgml/ref
CPP_PROJ
=
/nologo
$(OPT)
/W3 /GX /D
"WIN32"
$(DEBUGDEF)
/D
"_CONSOLE"
/D
\
"_MBCS"
/Fp
"
$(INTDIR)
\p
g_dump.pch"
/YX /Fo
"
$(INTDIR)
\\
"
/Fd
"
$(INTDIR)
\\
"
/FD /c
\
/I ..
\.
.
\i
nclude /I ..
\.
.
\i
nterfaces
\l
ibpq /I ..
\.
.
\i
nclude
\p
ort
\w
in32 /I ..
\.
.
\b
ackend
\
/D
"HAVE_STRDUP"
/D
"FRONTEND"
CPP_OBJS
=
$(INTDIR)
/
CPP_SBRS
=
.
ALL
:
..
\.
.
\b
ackend
\p
arser
\p
arse.h "..
\.
.
\p
ort
\p
g_config_paths.h"
\
"$(OUTDIR)
\p
g_dump.exe" "$(OUTDIR)
\p
g_dumpall.exe" "$(OUTDIR)
\p
g_restore.exe"
CLEAN
:
-
@erase
"
$(INTDIR)
\p
g_backup_archiver.obj"
-
@erase
"
$(INTDIR)
\p
g_backup_db.obj"
-
@erase
"
$(INTDIR)
\p
g_backup_custom.obj"
-
@erase
"
$(INTDIR)
\p
g_backup_files.obj"
-
@erase
"
$(INTDIR)
\p
g_backup_null.obj"
-
@erase
"
$(INTDIR)
\p
g_backup_tar.obj"
-
@erase
"
$(INTDIR)
\d
umputils.obj"
-
@erase
"
$(INTDIR)
\c
ommon.obj"
-
@erase
"
$(INTDIR)
\p
g_dump_sort.obj"
-
@erase
"
$(INTDIR)
\k
eywords.obj"
-
@erase
"
$(INTDIR)
\e
xec.obj"
-
@erase
"
$(INTDIR)
\g
etopt.obj"
-
@erase
"
$(INTDIR)
\g
etopt_long.obj"
-
@erase
"
$(INTDIR)
\p
ath.obj"
-
@erase
"
$(INTDIR)
\p
gstrcasecmp.obj"
-
@erase
"
$(INTDIR)
\s
prompt.obj"
-
@erase
"
$(INTDIR)
\p
g_dump.pch"
-
@erase
"
$(OUTDIR)
\p
g_dump.obj"
-
@erase
"
$(OUTDIR)
\p
g_dump.exe"
-
@erase
"
$(INTDIR)
\p
g_dumpall.obj"
-
@erase
"
$(OUTDIR)
\p
g_dumpall.exe"
-
@erase
"
$(INTDIR)
\p
g_restore.obj"
-
@erase
"
$(OUTDIR)
\p
g_restore.exe"
# -@erase "$(INTDIR)\..\..\port\pg_config_paths.h"
# -@erase "$(INTDIR)\..\..\backend\parser\parse.h"
# -@erase "$(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)
\p
g_dump.pdb"
/machine:I386
$(LOPT)
/out:
"
$(OUTDIR)
\p
g_dump.exe"
LINK32_FLAGS_ALL
=
\
/pdb:
"
$(OUTDIR)
\p
g_dumpall.pdb"
/machine:I386
$(LOPT)
/out:
"
$(OUTDIR)
\p
g_dumpall.exe"
LINK32_FLAGS_RES
=
\
/pdb:
"
$(OUTDIR)
\p
g_restore.pdb"
/machine:I386
$(LOPT)
/out:
"
$(OUTDIR)
\p
g_restore.exe"
LINK32_OBJS
=
\
"
$(INTDIR)
\p
g_backup_archiver.obj"
\
"
$(INTDIR)
\p
g_backup_db.obj"
\
"
$(INTDIR)
\p
g_backup_custom.obj"
\
"
$(INTDIR)
\p
g_backup_files.obj"
\
"
$(INTDIR)
\p
g_backup_null.obj"
\
"
$(INTDIR)
\p
g_backup_tar.obj"
\
"
$(INTDIR)
\d
umputils.obj"
\
"
$(INTDIR)
\k
eywords.obj"
\
"
$(INTDIR)
\e
xec.obj"
\
"
$(INTDIR)
\g
etopt.obj"
\
"
$(INTDIR)
\g
etopt_long.obj"
\
"
$(INTDIR)
\p
ath.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\s
prompt.obj"
LINK32_OBJS_DMP
=
\
"
$(INTDIR)
\c
ommon.obj"
\
"
$(INTDIR)
\p
g_dump_sort.obj"
\
"
$(INTDIR)
\p
g_dump.obj"
LINK32_OBJS_RES
=
"
$(INTDIR)
\p
g_restore.obj"
LINK32_OBJS_ALL
=
"
$(INTDIR)
\p
g_dumpall.obj"
!IFDEF
DEBUG
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\D
ebug
\l
ibpqddll.lib"
!ELSE
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\R
elease
\l
ibpqdll.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
:
..
\.
.
\b
ackend
\p
arser
\g
ram.y
$(YACC)
-y
-d
..
\.
.
\b
ackend
\p
arser
\g
ram.y
$(MV)
..
\.
.
\b
ackend
\p
arser
\y
.tab.h ..
\.
.
\b
ackend
\p
arser
\p
arse.h
$(MV)
..
\.
.
\b
ackend
\p
arser
\y
.tab.c ..
\.
.
\b
ackend
\p
arser
\g
ram.c
.c{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
src/include/pg_config.h.win32
View file @
58634caa
...
...
@@ -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
...
...
src/win32.mak
View file @
58634caa
# $PostgreSQL: pgsql/src/win32.mak,v 1.1
0 2005/06/14 17:50:37
momjian Exp $
# $PostgreSQL: pgsql/src/win32.mak,v 1.1
1 2006/02/12 06:11:50
momjian Exp $
# Makefile for Microsoft Visual C++ 5.0 (or compat)
# Top-file makefile for Win32 parts of postgresql.
...
...
@@ -18,6 +18,10 @@ ALL:
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
..\..
...
...
@@ -28,6 +32,10 @@ CLEAN:
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
cd
..\..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment