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
Grigory Smolkin
4efa7ab330
add message about Recovery Time
2017-12-08 16:53:00 +03:00
Grigory Smolkin
bdb47b744f
minor changes to elevel of certain messages
2017-12-08 16:24:35 +03:00
Grigory Smolkin
61d57b63db
ptrack minor optimization
2017-12-08 16:22:06 +03:00
Arthur Zakirov
ccdb4d748b
Merge branch 'pgpro-584'
2017-11-30 15:51:46 +03:00
Arthur Zakirov
3f0efe4c8f
Use pg_stat_file() with pg_read_file()
2017-11-30 15:49:48 +03:00
Grigory Smolkin
b16dd21617
PGPRO-1189: fix for exclusive mode for backup from replica
2017-11-29 23:03:12 +03:00
Grigory Smolkin
a7bc86211c
PGPRO-1189: for exclusive backups get backup_label and tablespace_map via SQL
2017-11-29 12:51:43 +03:00
Anastasia
b5a70fcfd9
check if ptrack_version == 1.4
2017-11-24 14:26:23 +03:00
Grigory Smolkin
5534b107a0
minor changes to log messages
2017-11-22 17:04:46 +03:00
Arthur Zakirov
a1eeef782e
PGPRO-584: Parse unit name of configuration parameters
2017-11-21 19:50:06 +03:00
Arthur Zakirov
a00fdafcec
Use exclusive backup for PTRACK backups
2017-11-21 15:51:45 +03:00
Arthur Zakirov
1b9c8c943d
PGPRO-584: Add additional message for log file.
...
Message is added only during backup.
2017-11-15 19:21:30 +03:00
Anastasia
e85e45938c
Do not backup files of the unlogged relations (only leave _init fork)
2017-11-13 18:52:09 +03:00