Skip to content

Commit 29540c2

Browse files
committed
Merge remote-tracking branch 'origin/PGPRO11_DEV' into PGPRO11-1121_copy
2 parents 820cd0f + 8b45e97 commit 29540c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5458
-1514
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PROGRAM = pg_probackup
22
OBJS = src/backup.o src/catalog.o src/configure.o src/data.o \
33
src/delete.o src/dir.o src/fetch.o src/help.o src/init.o \
4-
src/pg_probackup.o src/restore.o src/show.o src/status.o \
4+
src/pg_probackup.o src/restore.o src/show.o \
55
src/util.o src/validate.o src/datapagemap.o src/parsexlog.o \
66
src/xlogreader.o src/streamutil.o src/receivelog.o \
77
src/archive.o src/utils/parray.o src/utils/pgut.o src/utils/logger.o \
@@ -32,7 +32,7 @@ else
3232
srchome=$(top_srcdir)
3333
endif
3434

35-
ifneq (,$(filter 10 11 12,$(MAJORVERSION)))
35+
ifeq (,$(filter 9.5 9.6,$(MAJORVERSION)))
3636
OBJS += src/walmethods.o
3737
EXTRA_CLEAN += src/walmethods.c src/walmethods.h
3838
INCLUDES += src/walmethods.h
@@ -64,7 +64,7 @@ src/streamutil.h: $(top_srcdir)/src/bin/pg_basebackup/streamutil.h
6464
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/streamutil.h $@
6565

6666

67-
ifneq (,$(filter 10 11 12,$(MAJORVERSION)))
67+
ifeq (,$(filter 9.5 9.6,$(MAJORVERSION)))
6868
src/walmethods.c: $(top_srcdir)/src/bin/pg_basebackup/walmethods.c
6969
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/walmethods.c $@
7070
src/walmethods.h: $(top_srcdir)/src/bin/pg_basebackup/walmethods.h

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
`pg_probackup` is a utility to manage backup and recovery of PostgreSQL database clusters. It is designed to perform periodic backups of the PostgreSQL instance that enable you to restore the server in case of a failure.
44

55
The utility is compatible with:
6-
* PostgreSQL 9.5, 9.6, 10;
6+
* PostgreSQL 9.5, 9.6, 10, 11;
77

88
`PTRACK` backup support provided via following options:
99
* vanilla PostgreSQL compiled with ptrack patch. Currently there are patches for [PostgreSQL 9.6](https://gist.githubusercontent.com/gsmol/5b615c971dfd461c76ef41a118ff4d97/raw/e471251983f14e980041f43bea7709b8246f4178/ptrack_9.6.6_v1.5.patch) and [PostgreSQL 10](https://gist.githubusercontent.com/gsmol/be8ee2a132b88463821021fd910d960e/raw/de24f9499f4f314a4a3e5fae5ed4edb945964df8/ptrack_10.1_v1.5.patch)
10-
* Postgres Pro Standard 9.5, 9.6
11-
* Postgres Pro Enterprise
10+
* Postgres Pro Standard 9.5, 9.6, 10
11+
* Postgres Pro Enterprise 9.5, 9.6, 10
1212

1313
As compared to other backup solutions, `pg_probackup` offers the following benefits that can help you implement different backup strategies and deal with large amounts of data:
1414
* Choosing between full and page-level incremental backups to speed up backup and recovery
@@ -97,4 +97,4 @@ Postgres Professional, Moscow, Russia.
9797

9898
## Credits
9999

100-
`pg_probackup` utility is based on `pg_arman`, that was originally written by NTT and then developed and maintained by Michael Paquier.
100+
`pg_probackup` utility is based on `pg_arman`, that was originally written by NTT and then developed and maintained by Michael Paquier.

gen_probackup_project.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ sub build_pgprobackup
127127
#vvs test
128128
my $probackup =
129129
$solution->AddProject('pg_probackup', 'exe', 'pg_probackup'); #, 'contrib/pg_probackup'
130+
$probackup->AddDefine('FRONTEND');
130131
$probackup->AddFiles(
131132
'contrib/pg_probackup/src',
132133
'archive.c',
@@ -139,11 +140,11 @@ sub build_pgprobackup
139140
'fetch.c',
140141
'help.c',
141142
'init.c',
143+
'merge.c',
142144
'parsexlog.c',
143145
'pg_probackup.c',
144146
'restore.c',
145147
'show.c',
146-
'status.c',
147148
'util.c',
148149
'validate.c'
149150
);

src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*
88
*-------------------------------------------------------------------------
99
*/
10+
1011
#include "pg_probackup.h"
1112

1213
#include <unistd.h>
13-
#include <sys/stat.h>
1414

1515
/*
1616
* pg_probackup specific archive command for archive backups
@@ -52,7 +52,7 @@ do_archive_push(char *wal_file_path, char *wal_file_name, bool overwrite)
5252

5353
if(system_id != config->system_identifier)
5454
elog(ERROR, "Refuse to push WAL segment %s into archive. Instance parameters mismatch."
55-
"Instance '%s' should have SYSTEM_ID = " INT64_FORMAT " instead of " INT64_FORMAT,
55+
"Instance '%s' should have SYSTEM_ID = %ld instead of %ld",
5656
wal_file_name, instance_name, config->system_identifier, system_id);
5757

5858
/* Create 'archlog_path' directory. Do nothing if it already exists. */

0 commit comments

Comments
 (0)