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
83aca89f
Commit
83aca89f
authored
Mar 10, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pg_archivecleanup from contrib/ to src/bin/
Reviewed-by:
Michael Paquier
<
michael.paquier@gmail.com
>
parent
27846f02
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
39 additions
and
35 deletions
+39
-35
contrib/Makefile
contrib/Makefile
+0
-1
contrib/pg_archivecleanup/Makefile
contrib/pg_archivecleanup/Makefile
+0
-18
doc/src/sgml/contrib.sgml
doc/src/sgml/contrib.sgml
+0
-1
doc/src/sgml/filelist.sgml
doc/src/sgml/filelist.sgml
+0
-1
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/allfiles.sgml
+1
-0
doc/src/sgml/ref/pgarchivecleanup.sgml
doc/src/sgml/ref/pgarchivecleanup.sgml
+1
-9
doc/src/sgml/reference.sgml
doc/src/sgml/reference.sgml
+1
-0
src/bin/Makefile
src/bin/Makefile
+1
-0
src/bin/pg_archivecleanup/.gitignore
src/bin/pg_archivecleanup/.gitignore
+0
-0
src/bin/pg_archivecleanup/Makefile
src/bin/pg_archivecleanup/Makefile
+27
-0
src/bin/pg_archivecleanup/pg_archivecleanup.c
src/bin/pg_archivecleanup/pg_archivecleanup.c
+1
-1
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+7
-4
No files found.
contrib/Makefile
View file @
83aca89f
...
@@ -28,7 +28,6 @@ SUBDIRS = \
...
@@ -28,7 +28,6 @@ SUBDIRS = \
oid2name
\
oid2name
\
pageinspect
\
pageinspect
\
passwordcheck
\
passwordcheck
\
pg_archivecleanup
\
pg_buffercache
\
pg_buffercache
\
pg_freespacemap
\
pg_freespacemap
\
pg_prewarm
\
pg_prewarm
\
...
...
contrib/pg_archivecleanup/Makefile
deleted
100644 → 0
View file @
27846f02
# contrib/pg_archivecleanup/Makefile
PGFILEDESC
=
"pg_archivecleanup - cleans archive when used with streaming replication"
PGAPPICON
=
win32
PROGRAM
=
pg_archivecleanup
OBJS
=
pg_archivecleanup.o
$(WIN32RES)
ifdef
USE_PGXS
PG_CONFIG
=
pg_config
PGXS
:=
$(
shell
$(PG_CONFIG)
--pgxs
)
include
$(PGXS)
else
subdir
=
contrib/pg_archivecleanup
top_builddir
=
../..
include
$(top_builddir)/src/Makefile.global
include
$(top_srcdir)/contrib/contrib-global.mk
endif
doc/src/sgml/contrib.sgml
View file @
83aca89f
...
@@ -202,7 +202,6 @@ pages.
...
@@ -202,7 +202,6 @@ pages.
part of the core <productname>PostgreSQL</productname> distribution.
part of the core <productname>PostgreSQL</productname> distribution.
</para>
</para>
&pgarchivecleanup;
&pgstandby;
&pgstandby;
&pgtestfsync;
&pgtestfsync;
&pgtesttiming;
&pgtesttiming;
...
...
doc/src/sgml/filelist.sgml
View file @
83aca89f
...
@@ -126,7 +126,6 @@
...
@@ -126,7 +126,6 @@
<!ENTITY pageinspect SYSTEM "pageinspect.sgml">
<!ENTITY pageinspect SYSTEM "pageinspect.sgml">
<!ENTITY passwordcheck SYSTEM "passwordcheck.sgml">
<!ENTITY passwordcheck SYSTEM "passwordcheck.sgml">
<!ENTITY pgbench SYSTEM "pgbench.sgml">
<!ENTITY pgbench SYSTEM "pgbench.sgml">
<!ENTITY pgarchivecleanup SYSTEM "pgarchivecleanup.sgml">
<!ENTITY pgbuffercache SYSTEM "pgbuffercache.sgml">
<!ENTITY pgbuffercache SYSTEM "pgbuffercache.sgml">
<!ENTITY pgcrypto SYSTEM "pgcrypto.sgml">
<!ENTITY pgcrypto SYSTEM "pgcrypto.sgml">
<!ENTITY pgfreespacemap SYSTEM "pgfreespacemap.sgml">
<!ENTITY pgfreespacemap SYSTEM "pgfreespacemap.sgml">
...
...
doc/src/sgml/ref/allfiles.sgml
View file @
83aca89f
...
@@ -179,6 +179,7 @@ Complete list of usable sgml source files in this directory.
...
@@ -179,6 +179,7 @@ Complete list of usable sgml source files in this directory.
<!ENTITY dropuser SYSTEM "dropuser.sgml">
<!ENTITY dropuser SYSTEM "dropuser.sgml">
<!ENTITY ecpgRef SYSTEM "ecpg-ref.sgml">
<!ENTITY ecpgRef SYSTEM "ecpg-ref.sgml">
<!ENTITY initdb SYSTEM "initdb.sgml">
<!ENTITY initdb SYSTEM "initdb.sgml">
<!ENTITY pgarchivecleanup SYSTEM "pgarchivecleanup.sgml">
<!ENTITY pgBasebackup SYSTEM "pg_basebackup.sgml">
<!ENTITY pgBasebackup SYSTEM "pg_basebackup.sgml">
<!ENTITY pgConfig SYSTEM "pg_config-ref.sgml">
<!ENTITY pgConfig SYSTEM "pg_config-ref.sgml">
<!ENTITY pgControldata SYSTEM "pg_controldata.sgml">
<!ENTITY pgControldata SYSTEM "pg_controldata.sgml">
...
...
doc/src/sgml/pgarchivecleanup.sgml
→
doc/src/sgml/
ref/
pgarchivecleanup.sgml
View file @
83aca89f
<!-- doc/src/sgml/pgarchivecleanup.sgml -->
<!-- doc/src/sgml/
ref/
pgarchivecleanup.sgml -->
<refentry id="pgarchivecleanup">
<refentry id="pgarchivecleanup">
<indexterm zone="pgarchivecleanup">
<indexterm zone="pgarchivecleanup">
...
@@ -193,14 +193,6 @@ archive_cleanup_command = 'pg_archivecleanup -d /mnt/standby/archive %r 2>>clean
...
@@ -193,14 +193,6 @@ archive_cleanup_command = 'pg_archivecleanup -d /mnt/standby/archive %r 2>>clean
</itemizedlist>
</itemizedlist>
</refsect1>
</refsect1>
<refsect1>
<title>Author</title>
<para>
Simon Riggs <email>simon@2ndquadrant.com</email>
</para>
</refsect1>
<refsect1>
<refsect1>
<title>See Also</title>
<title>See Also</title>
...
...
doc/src/sgml/reference.sgml
View file @
83aca89f
...
@@ -257,6 +257,7 @@
...
@@ -257,6 +257,7 @@
</partintro>
</partintro>
&initdb;
&initdb;
&pgarchivecleanup;
&pgControldata;
&pgControldata;
&pgCtl;
&pgCtl;
&pgResetxlog;
&pgResetxlog;
...
...
src/bin/Makefile
View file @
83aca89f
...
@@ -15,6 +15,7 @@ include $(top_builddir)/src/Makefile.global
...
@@ -15,6 +15,7 @@ include $(top_builddir)/src/Makefile.global
SUBDIRS
=
\
SUBDIRS
=
\
initdb
\
initdb
\
pg_archivecleanup
\
pg_basebackup
\
pg_basebackup
\
pg_config
\
pg_config
\
pg_controldata
\
pg_controldata
\
...
...
contrib
/pg_archivecleanup/.gitignore
→
src/bin
/pg_archivecleanup/.gitignore
View file @
83aca89f
File moved
src/bin/pg_archivecleanup/Makefile
0 → 100644
View file @
83aca89f
# src/bin/pg_archivecleanup/Makefile
PGFILEDESC
=
"pg_archivecleanup - cleans archive when used with streaming replication"
PGAPPICON
=
win32
subdir
=
src/bin/pg_archivecleanup
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
OBJS
=
pg_archivecleanup.o
$(WIN32RES)
all
:
pg_archivecleanup
pg_archivecleanup
:
$(OBJS) | submake-libpgport
$(CC)
$(CFLAGS)
$^
$(LDFLAGS)
$(LDFLAGS_EX)
$(LIBS)
-o
$@$(X)
install
:
all installdirs
$(INSTALL_PROGRAM)
pg_archivecleanup
$(X)
'
$(DESTDIR)$(bindir)
/pg_archivecleanup
$(X)
'
installdirs
:
$(MKDIR_P)
'
$(DESTDIR)$(bindir)
'
uninstall
:
rm
-f
'
$(DESTDIR)$(bindir)
/pg_archivecleanup
$(X)
'
clean distclean maintainer-clean
:
rm
-f
pg_archivecleanup
$(X)
$(OBJS)
contrib
/pg_archivecleanup/pg_archivecleanup.c
→
src/bin
/pg_archivecleanup/pg_archivecleanup.c
View file @
83aca89f
/*
/*
*
contrib
/pg_archivecleanup/pg_archivecleanup.c
*
src/bin
/pg_archivecleanup/pg_archivecleanup.c
*
*
* pg_archivecleanup.c
* pg_archivecleanup.c
*
*
...
...
src/tools/msvc/Mkvcbuild.pm
View file @
83aca89f
...
@@ -34,13 +34,13 @@ my @contrib_uselibpq =
...
@@ -34,13 +34,13 @@ my @contrib_uselibpq =
('
dblink
',
'
oid2name
',
'
pgbench
',
'
pg_upgrade
',
'
postgres_fdw
',
'
vacuumlo
');
('
dblink
',
'
oid2name
',
'
pgbench
',
'
pg_upgrade
',
'
postgres_fdw
',
'
vacuumlo
');
my
@contrib_uselibpgport
=
(
my
@contrib_uselibpgport
=
(
'
oid2name
',
'
pgbench
',
'
oid2name
',
'
pgbench
',
'
pg_standby
',
'
pg_archivecleanup
',
'
pg_standby
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
vacuumlo
');
'
vacuumlo
');
my
@contrib_uselibpgcommon
=
(
my
@contrib_uselibpgcommon
=
(
'
oid2name
',
'
pgbench
',
'
oid2name
',
'
pgbench
',
'
pg_standby
',
'
pg_archivecleanup
',
'
pg_standby
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_test_fsync
',
'
pg_test_timing
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
pg_upgrade
',
'
pg_xlogdump
',
'
vacuumlo
');
'
vacuumlo
');
...
@@ -57,6 +57,8 @@ my @contrib_excludes = ('pgcrypto', 'intagg', 'sepgsql');
...
@@ -57,6 +57,8 @@ my @contrib_excludes = ('pgcrypto', 'intagg', 'sepgsql');
# Set of variables for frontend modules
# Set of variables for frontend modules
my
$frontend_defines
=
{
'
initdb
'
=>
'
FRONTEND
'
};
my
$frontend_defines
=
{
'
initdb
'
=>
'
FRONTEND
'
};
my
@frontend_uselibpq
=
('
pg_ctl
',
'
psql
');
my
@frontend_uselibpq
=
('
pg_ctl
',
'
psql
');
my
@frontend_uselibpgport
=
(
'
pg_archivecleanup
'
);
my
@frontend_uselibpgcommon
=
(
'
pg_archivecleanup
'
);
my
$frontend_extralibs
=
{
my
$frontend_extralibs
=
{
'
initdb
'
=>
['
ws2_32.lib
'],
'
initdb
'
=>
['
ws2_32.lib
'],
'
pg_restore
'
=>
['
ws2_32.lib
'],
'
pg_restore
'
=>
['
ws2_32.lib
'],
...
@@ -769,8 +771,9 @@ sub AdjustContribProj
...
@@ -769,8 +771,9 @@ sub AdjustContribProj
sub AdjustFrontendProj
sub AdjustFrontendProj
{
{
my $proj = shift;
my $proj = shift;
AdjustModule($proj, $frontend_defines,
\
@frontend_uselibpq, undef,
AdjustModule($proj, $frontend_defines,
\
@frontend_uselibpq,
undef, $frontend_extralibs,
\
@frontend_uselibpgport,
\
@frontend_uselibpgcommon,
$frontend_extralibs,
$frontend_extrasource, $frontend_extraincludes);
$frontend_extrasource, $frontend_extraincludes);
}
}
...
...
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