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
600fc1dc
Commit
600fc1dc
authored
Jul 01, 2010
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some more stuff that duplicates c.h or port.h.
parent
14bd1c3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
contrib/pg_upgrade/controldata.c
contrib/pg_upgrade/controldata.c
+0
-1
contrib/pg_upgrade/file.c
contrib/pg_upgrade/file.c
+0
-5
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/pg_upgrade.h
+1
-14
No files found.
contrib/pg_upgrade/controldata.c
View file @
600fc1dc
...
...
@@ -7,7 +7,6 @@
#include "pg_upgrade.h"
#include <ctype.h>
#include <stdlib.h>
/*
...
...
contrib/pg_upgrade/file.c
View file @
600fc1dc
...
...
@@ -6,13 +6,8 @@
#include "pg_upgrade.h"
#include <sys/types.h>
#include <fcntl.h>
#ifdef WIN32
#include <windows.h>
#endif
static
int
copy_file
(
const
char
*
fromfile
,
const
char
*
tofile
,
bool
force
);
...
...
contrib/pg_upgrade/pg_upgrade.h
View file @
600fc1dc
...
...
@@ -5,13 +5,10 @@
#include "postgres.h"
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include "libpq-fe.h"
...
...
@@ -38,26 +35,16 @@
#define pg_copy_file copy_file
#define pg_mv_file rename
#define pg_link_file link
#define DEVNULL "/dev/null"
#define DEVTTY "/dev/tty"
#define RMDIR_CMD "rm -rf"
#define EXEC_EXT "sh"
#else
#define pg_copy_file CopyFile
#define pg_mv_file pgrename
#define pg_link_file win32_pghardlink
#define EXE_EXT ".exe"
#define sleep(x) Sleep(x * 1000)
#define DEVNULL "nul"
/* "con" does not work from the Msys 1.0.10 console (part of MinGW). */
#define DEVTTY "con"
/* from pgport */
extern
int
pgrename
(
const
char
*
from
,
const
char
*
to
);
extern
int
pgunlink
(
const
char
*
path
);
#define rename(from, to) pgrename(from, to)
#define unlink(path) pgunlink(path)
#define RMDIR_CMD "RMDIR /s/q"
#define EXEC_EXT "bat"
#define EXE_EXT ".exe"
#endif
#define CLUSTERNAME(cluster) ((cluster) == CLUSTER_OLD ? "old" : "new")
...
...
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