Anastasia
33a33a9e1b
Version 2.0.19.
...
Various fixes and code cleanup for previous version.
2018-08-17 16:31:28 +03:00
Anastasia
14d09bb0df
fix a typo in variable name
2018-08-16 23:56:37 +03:00
Anastasia
1222a7002b
Detect WAL corruption in parallel page backup.
...
Improve log messages.
2018-08-16 23:38:57 +03:00
Anastasia
facada7a8e
Throw an error if WAL file is from different database system. Fix: add this check for all wal readers
2018-08-16 23:02:59 +03:00
Anastasia
321aa426a2
Throw an error if WAL file is from different database system
2018-08-16 19:34:53 +03:00
Anastasia
2fac44e18e
fix merge conflits
2018-08-03 13:29:07 +03:00
Anastasia and Arthur Zakirov
68060e7dda
fix race in make_pagemap_from_ptrack() for segments created after we've read ptrack
2018-08-03 13:25:00 +03:00
Anastasia
7fe5625cfd
merge master into pgpro_428_v1
2018-08-03 12:13:06 +03:00
Anastasia
9efc32f943
fix counting in dest_backup search
2018-08-03 12:11:01 +03:00
Anastasia
8f4232db34
add check
2018-08-02 17:35:48 +03:00
Anastasia
27497d54c5
Merge branch 'master' into pgpro_428_v1
2018-08-02 15:39:45 +03:00
Anastasia
e7d088c238
PGPRO-1700: Show default options in show-config
...
and clean up the code of the config options.
2018-08-01 16:48:37 +03:00
Anastasia
4124378d1c
merge master into pgpro_428_v1
2018-07-30 16:33:58 +03:00
Anastasia
264cd18fb4
check links to parent backup in validate
2018-07-30 16:31:43 +03:00
Anastasia
e71312cc03
add parent_backup_link to pgBackup structure. No usage for now
2018-05-30 20:56:01 +03:00
Anastasia
95e038cce7
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2018-05-21 17:38:40 +03:00
Anastasia
0b0a48ff4c
add support of ptrack 1.6
2018-05-21 17:37:59 +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
Anastasia
351b3dd263
define pthread_t in logger.c for WINDOWS
2018-03-13 17:41:03 +03:00
Anastasia
14fa9542d4
use dynamically allocated array for validate_threads
2018-03-13 17:02:58 +03:00
Anastasia
79ece89521
Merge branch 'pg_probackup_windows' of git.postgrespro.ru:pgpro-dev/pg_probackup into pg_probackup_windows
2018-03-13 15:25:37 +03:00
Anastasia
990ccd32fc
use dynamically allocated array for restore_threads
2018-03-13 15:24:49 +03:00
Anastasia
f0547f46a1
fix includes
2018-03-13 15:17:58 +03:00
Anastasia
80a890ccd8
Merge branch 'pg_probackup_windows' of git.postgrespro.ru:pgpro-dev/pg_probackup into pg_probackup_windows
2018-03-13 14:54:17 +03:00
Anastasia
b637a98b50
include postgresql cross platform atomics. It takes ugly #undef FRONTEND hack to do that
2018-03-13 14:53:04 +03:00
Anastasia
76afcee125
Version 2.0.16
...
- Fix CVE-2018-1058. Use schema name explicitly in all function calls.
- Fix: Handle datafiles in directory global as datafiles.
- Fix: Do not copy ptrack files from directory global to backup anymore.
- Check if --instance is specified for VALIDATE with target parameters
- Adjust README package installation instruction.
2018-03-02 19:26:37 +03:00
Anastasia
8b5e2cd713
Fix CVE-2018-1058. Use schema name explicitly in all function calls.
2018-03-02 19:20:40 +03:00
Anastasia
9ec02abc0d
WIP. Doesn't work. Cross platform multi threaded backup/restore
2018-03-02 15:22:57 +03:00
Anastasia
834cfb6ab8
fix 'unary minus operator applied to unsigned type'
2018-02-27 14:40:05 +03:00
Anastasia
7e096be2b3
add partial ptread implementation for windows port
2018-02-27 14:37:46 +03:00
Anastasia
18364caa34
rewrite dir_create_dir() in a cross platform way
2018-02-27 13:02:43 +03:00
Anastasia
2a9baaa960
Rename 'delete' in the ProbackupSubcmd enum to differ it from reserved keyword
2018-02-27 12:31:41 +03:00
Anastasia
1adde8f19f
fix usage of symlink specific code
2018-02-26 18:44:22 +03:00
Anastasia
2689ddb9ba
use dynamically allocated array for backup_threads
2018-02-26 17:55:39 +03:00
Anastasia
7eeb7a110b
Fix directory check. Now pg_probackup init uses postgresql cross platform function pg_check_dir to ensure that backup catalog is empty
2018-02-02 21:02:18 +03:00
Anastasia
c981bf737f
Version 2.0.14
...
- fixed race conditions in ptrack and page backups
- fixed parallel ptrack backup interruption
- added new backup state 'ORPHAN' which means that one of previous backups is corrupted
2018-01-17 10:46:29 +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
0905edfdb9
Merge branch 'master' into fix_ptrack_1230
2018-01-15 18:18:55 +03:00
Anastasia
7e28977a03
check is data_checksums are enabled in postgres instance
2018-01-15 17:58:44 +03:00
Anastasia
5b5fe6ea5c
fix restore of the truncated files. code cleanup
2018-01-15 16:33:17 +03:00
Anastasia
0c2ce64c1b
fix restore of the truncated files
2018-01-15 15:35:51 +03:00
Anastasia
b81f74011e
Merge branch 'master' into fix_ptrack_1230
2018-01-15 11:39:14 +03:00
Anastasia
ac195f47b6
truncate restored files when necessary
2018-01-14 15:45:56 +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
c5f0787453
Fix. Pages read via SQL don't have checksum, so calculate it at the backup side. It's an arguable decision, but at least now we are able to test other possible issues.
2017-12-27 19:34:07 +03:00
Anastasia
59477414c6
fix reading the block for ptrack backups
2017-12-27 18:49:30 +03:00
Anastasia
933135a594
Merge branch 'master' into fix_ptrack_1230
2017-12-27 15:32:09 +03:00
Anastasia
fe5a5fb444
refactoring to read block via SQL for ptrack backups
2017-12-27 15:31:15 +03:00
Anastasia
114a575a52
Merge branch 'master' into fix_ptrack_1230
2017-12-22 14:46:32 +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
Anastasia
b5a70fcfd9
check if ptrack_version == 1.4
2017-11-24 14:26:23 +03:00
Anastasia
fae522df4a
Version 2.0.12
...
- Do not include unlogged relations into the backup.
- Use exclusive backup for PTRACK backups.
- Do not throw an error if the file was truncated during backup.
2017-11-23 11:28:04 +03:00
Anastasia
e85e45938c
Do not backup files of the unlogged relations (only leave _init fork)
2017-11-13 18:52:09 +03:00
Anastasia
082612b528
Version 2.0.11.
...
- Fix password prompt interruption
- Check if the password provided by a user is empty
- Fix incremental backups: do not include into backup files, that didn't changed since previous backup.
- Add PG version into backup meta infromation
2017-11-10 17:40:30 +03:00
Anastasia
a40d0e3702
code cleanup for 22cb8c60aa
2017-11-10 14:13:44 +03:00
Anastasia
3a1d5c430f
Version 2.0.10
2017-10-30 15:02:56 +03:00
Anastasia
7a0cc9a2da
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2017-10-10 19:11:13 +03:00
Anastasia
27a90e847d
Version 2.0.8. Stable
2017-10-10 19:10:59 +03:00
Anastasia
dcf516cdbd
check if ptrack_version == 1.3
2017-10-10 19:10:03 +03:00
Anastasia
9813471e7b
Version 2.0.6
2017-10-04 12:24:53 +03:00
Anastasia
c237774d4d
exclude pg_internal.init from backup
2017-10-03 19:19:38 +03:00
Anastasia
25b7a706ba
small fixes
2017-10-03 17:57:48 +03:00
Anastasia
990ab6050d
Version 2.0.5
2017-10-03 15:57:15 +03:00
Anastasia
fd2019b85a
fix incorrect pg_ptrack_clean() call
2017-10-02 21:05:24 +03:00
Anastasia
315cf3bc92
Read value from ptrack_control via function call. Code cleanup
2017-10-02 18:31:46 +03:00
Anastasia
18e49a45f5
fixes for ptrack backup. code cleanup
2017-10-02 00:57:38 +03:00
Anastasia
a8f2b432ce
fix template0 backup. Always copy all files of this database
2017-10-01 18:28:39 +03:00
Anastasia
3246875486
code refactoring and fixes for ptrack backup. TODO cleanup debug messages
2017-09-29 20:25:11 +03:00
Anastasia
64939fd328
backup via repprotocol v1. WIP
2017-09-28 17:40:24 +03:00
Anastasia
e47b02018b
code cleanup. add more comments
2017-09-28 15:12:12 +03:00
Anastasia
43efdd3da7
code cleanup
2017-09-28 14:39:21 +03:00
Anastasia
04105e8f07
Version 2.0.4
2017-09-28 13:10:03 +03:00
Anastasia
7993488b92
fix ptrack_get_and_clear() for files in pg_global tablespace
2017-09-28 12:42:43 +03:00
Anastasia
1befa474aa
fix redundant check in page validation
2017-09-28 12:42:19 +03:00
Anastasia
765524854c
do not call calc_checksum for non regular files. add an Assert
2017-09-26 20:13:23 +03:00
Anastasia
a5e8a54d82
do not throw an error if database is not found while performing ptrack backup
2017-09-01 14:59:44 +03:00
Anastasia
a42add54a1
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2017-09-01 11:52:04 +03:00
Anastasia
25762c2830
add check for interrupt in prompt for password
2017-09-01 11:51:49 +03:00
Anastasia
9f91dfc5bb
Bunch of small fixes. Version 2.0.1
2017-07-05 17:36:22 +03:00
Anastasia
be95e17fac
Version 2.0
2017-07-03 18:09:24 +03:00
Anastasia
385798e753
add --compress shortcut option
2017-07-03 18:06:39 +03:00
Anastasia
03dfb7bc59
minor fix
2017-07-03 17:43:32 +03:00
Anastasia
393afa55e7
fix
2017-07-03 17:22:28 +03:00
Anastasia
6b4c90a25e
check file existence in archive-push
2017-07-03 16:15:46 +03:00
Anastasia
9c7eae6753
fix exit code
2017-06-26 16:47:24 +03:00
Anastasia
4b58d2e52b
fix validate to target in the future
2017-06-26 13:17:12 +03:00
Anastasia
e0596efd85
Version 1.1.17
2017-06-20 17:54:15 +03:00
Anastasia
882515fa7a
fix
2017-06-20 15:04:23 +03:00
Anastasia
56e6250fc8
relative path for top_srcdir is fixed
2017-06-20 14:37:01 +03:00
Anastasia
3f931e9a64
fix
2017-06-20 14:31:44 +03:00
Anastasia
d47d538914
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2017-06-20 14:12:21 +03:00
Anastasia
fd46947329
fix Makefile. TODO fix relative path
2017-06-20 14:12:16 +03:00
Anastasia
5e034a4acc
move sources to src/ subdir, update copyright
2017-06-20 12:37:10 +03:00
Anastasia
ac4896e02c
Cannot specify compress-level option without compress-alg option
2017-06-16 18:02:43 +03:00
Anastasia
7483bbefc8
fix
2017-06-16 17:39:10 +03:00