1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-04 14:11:31 +02:00

113 Commits

Author SHA1 Message Date
Arthur Zakirov
b7caea5896 PGPRO-1376: Do not copy tablespace files twice 2018-04-24 17:45:30 +03:00
Grigory Smolkin
5f62980cb6 Merge branch 'master' into pgpro_1053_697 2018-04-11 02:25:11 +03:00
Arthur Zakirov
45988aae68 Make replication connection outside StreamLog() 2018-04-10 19:02:00 +03:00
Arthur Zakirov
ad083f827b PGPRO-1311: Fix for PostgreSQL 9.6 2018-04-09 00:10:52 +03:00
Arthur Zakirov
2e436111ec PGPRO-1311: Do not call exit() for thread, use pthread_exit() instead 2018-04-05 18:58:40 +03:00
Arthur Zakirov
f25ae416a7 Remove Assert() in StreamLog() 2018-04-05 14:09:37 +03:00
Arthur Zakirov
055daf7a35 Show finished streaming WAL message correctly 2018-04-04 17:06:50 +03:00
Arthur Zakirov
834d64b30c Fix wrong message for finished segment, add finished streaming message 2018-04-04 12:40:35 +03:00
Grigory Smolkin
c90210910b minor fixes and changes to elog messages 2018-03-26 19:50:49 +03:00
Arthur Zakirov
73eb5f266f Make compiler happy 2018-03-20 17:09:57 +03:00
Anastasia
c8147f7289 Add more recovery options for restore/validate:
--immediate - end recovery as soon as a consistent state is reached;
--recovery-target-name=target-name -
set the named restore point to which recovery will proceed;
--recovery-target-action=pause|promote|shutdown -
set the action the server should take once the recovery target is reached.

Add restore option -R (--write-recovery-conf) -
write a minimal recovery.conf in the output directory,
to ease setting up a standby server.
2018-03-20 15:49:43 +03:00
Grigory Smolkin
bea0f8ef63 Github Issue 24: check PQresultStatus for pg_stop_backup() 2018-03-19 20:51:01 +03:00
Grigory Smolkin
541195b597 fix PGPRO-1507: null-sized files were not copied to backup 2018-03-16 11:53:43 +03:00
Grigory Smolkin
14e1ae264b Merge remote-tracking branch 'origin/master' into pgpro-1457 2018-03-06 16:17:13 +03:00
Grigory Smolkin
9cdded93ac PGPRO-1457: fix DELTA backup not copiying files created by CREATE DATABASE 2018-03-06 16:10:58 +03:00
Anastasia
8b5e2cd713 Fix CVE-2018-1058. Use schema name explicitly in all function calls. 2018-03-02 19:20:40 +03:00
Grigory Smolkin
9fd5a22506 bugfix: datafiles in directory global were not handled as datafiles, also _ptrack files in directory global were copied to backup 2018-03-01 22:24:21 +03:00
Grigory Smolkin
70d7e463bb PGPRO-1457: backup mode DELTA 2018-02-26 17:53:29 +03:00
Arthur Zakirov
8787a061e6 Fix check_server_version() for Pg10+ 2018-02-09 13:22:01 +03:00
Grigory Smolkin
492c691d07 derive server_version_string from server_version_num, because server_version can be changed at compile time by --with-extra-version 2018-02-09 00:25:02 +03:00
Grigory Smolkin
43e18cafc9 revert to getting backup_label and tablespace_map as files; pg_read_file superuser only 2018-02-06 22:15:41 +03:00
Grigory Smolkin
ec8462293e additional LOG-level messages, checksumm check 2018-02-06 20:37:45 +03:00
Anna
fa35f2e09c Added a NULL check after strdup() in backup.c 2018-02-02 17:52:13 +03:00
Grigory Smolkin
8529276c11 minor changes to elevel and comments 2018-01-24 05:00:49 +03:00
Grigory Smolkin
a53c4c181d backup: allow to use delete-wal without delete-expired(in accordance with documentation) 2018-01-24 04:37:47 +03:00
Grigory Smolkin
1f31693658 minor changes to log level and log messages 2018-01-23 13:43:31 +03:00
Grigory Smolkin
9d9a885734 optimization: close connection in thread when it`s not needed 2018-01-23 13:39:49 +03:00
Grigory Smolkin
830bcfdc6a bugfixes:
- if block is invalid after 100 read attempts then throw an error
 - if block is invalid after first read attempt then instead of additional 99 atempts use pg_ptrack_get_block if ptrack is supported
2018-01-18 04:56:12 +03:00
Anastasia
073066b6a2 fix interrupts handlers for parallel connections 2018-01-16 15:19:48 +03:00
Anastasia
1ff4dde4ad fix parallel execution of pg_ptrack_get_block() 2018-01-16 14:16:50 +03:00
Anastasia
7ee0803849 make pg_probackup compatible with ptrack 1.5;
cleanup the code;
fix parallel pg_ptrack_get_block()
2018-01-16 11:54:15 +03:00
Anastasia
7e28977a03 check is data_checksums are enabled in postgres instance 2018-01-15 17:58:44 +03:00
Anastasia
0c2ce64c1b fix restore of the truncated files 2018-01-15 15:35:51 +03:00
Anastasia
07a1630a65 fix for parallel truncate 2018-01-12 21:11:09 +03:00
Anastasia
9255205263 Merge branch 'master' into fix_ptrack_1230 2018-01-12 16:29:32 +03:00
Anastasia
389c82fffb use pg_ptrack_get_block_2 to read block by relfilenode without relcache 2017-12-28 16:28:38 +03:00
Anastasia
109b9968cc fix databaseOID usage for pg_ptrack_get_block() 2017-12-28 15:09:10 +03:00
Anastasia
59477414c6 fix reading the block for ptrack backups 2017-12-27 18:49:30 +03:00
Anastasia
114a575a52 Merge branch 'master' into fix_ptrack_1230 2017-12-22 14:46:32 +03:00
Arthur Zakirov
d2c9fceca0 Add base36enc() and base36enc_dup().
base36enc() - returns static text
base36enc_dup() - returns duplicated text, which should be released by a user
2017-12-20 17:57:01 +03:00
Arthur Zakirov
4457529351 Merge branch 'pgpro-1184' 2017-12-14 18:10:14 +03:00
Anastasia
e0b3e89dd1 read block via pg_ptrack_read_block() for every page in ptrack backups and every invalid page in other backup modes 2017-12-14 17:46:30 +03:00
Arthur Zakirov
c9d11c5940 PGPRO-1184: Add --overwrite option for archive-push 2017-12-14 12:36:59 +03:00
Grigory Smolkin
a43c951c78 PGPRO-1226: disable archiving_enable check 2017-12-13 11:15:55 +03:00
Arthur Zakirov
7b0d214c0b PGPRO-692: Compress/Decompress WAL files during archive-push/archive-get 2017-12-12 15:07:13 +03:00
Arthur Zakirov
596ac3a37b Issue #20. Check system_identifier for PostgreSQL9.5.
System identifier is fetched via pg_read_binary_file() for Pg 9.5.
2017-12-11 15:44:54 +03:00
Arthur Zakirov
a528352919 Merge branch 'master' of github.com:postgrespro/pg_probackup 2017-12-11 14:06:47 +03:00
Raymond Tau
ee2b1a9c88 Add comment for check_system_identifiers
On the empty if case for skipping check before PG 9.6
2017-12-11 18:41:02 +08:00
Raymond Tau
67d17b5e73 Merge branch 'pg-9.5' 2017-12-11 18:34:53 +08:00
Raymond Tau
8192f0e58d Make pg_probackup works again on PostgreSQL 9.5
Function pg_control_system is added in 9.6, which makes check on
9.5 fails all the time. Added logic to bypass that checking of
system identifier between data directory DB connection unless
DB version is >= 9.6
2017-12-11 18:25:39 +08:00