Commit Graph
100 Commits
Author SHA1 Message Date
Anastasia 01fedaf04c pgpro-2605. Use absolute path of pg_probackup binary in recovery.conf generated by pg_probackup 2019-04-03 16:35:57 +03:00
AnastasiaandArthur Zakirov 7acccb4220 PGPRO-2413. Use PG_LIBS_INTERNAL instead of PG_LIBS to link with libpq library within build tree 2019-03-25 16:40:41 +03:00
Anastasia 38bd369145 PGPRO-2413. Use PG_LIBS_INTERNAL instead of PG_LIBS to link with libpq library within build tree 2019-03-04 17:09:00 +03:00
Anastasia 0220ae5146 Merge branch 'master' into pgpro_2370 2019-02-11 18:23:51 +03:00
Anastasia 5c247d0ffa treat snap files as not datafiles.
fix a typo in snapfs.py
2019-02-11 18:14:31 +03:00
Anastasia 3500323c87 Merge branch 'master' into stable 2018-11-13 14:06:45 +03:00
Anastasia 63be064c9f Merge branch 'master' into stable. Fixes for portability v2.0.24 2018-11-13 13:28:44 +03:00
Anastasia ac1c246c59 Merge branch 'master' into stable 2018-11-12 12:45:32 +03:00
Anastasia 4995652ef5 fix decompression of BLCKSZ pages 2018-11-10 15:49:36 +03:00
Anastasia 4870fa7f68 more informative error message for failed WAL record read 2018-11-09 13:59:56 +03:00
Anastasia 141ba33000 fix: close file after validation 2018-11-08 20:49:30 +03:00
Anastasia c530d28869 change datafile validation algorithm:
- validate file block by block by default, not only in case of file-level checksum corruption;
    - add an option: --skip-block-validation to disable this behaviour;
    - calculate file checksum at the same time as validate blocks;
2018-11-08 19:38:22 +03:00
Anastasia d280fef0ce Merge branch 'pgpro_1539' 2018-10-09 18:59:59 +03:00
Anastasia c8971f5d27 If checksums are enabled, the validate command now verifies checksums for blocks of datafiles. 2018-10-09 17:22:06 +03:00
Anastasia 96bd64dde7 Merge branch 'master' into stable 2018-08-17 16:31:39 +03:00
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
AnastasiaandArthur 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 435b5ee2ff Merge branch 'master' into stable 2018-05-21 17:38:08 +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 b5019b4148 Merge branch 'master' into stable 2018-03-02 19:27:08 +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 0912cba59a Merge branch 'master' into stable 2018-01-17 10:48:12 +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 60ad981e29 Merge branch 'stable' of git.postgrespro.ru:pgpro-dev/pg_probackup into stable 2017-11-23 11:29:42 +03:00
Anastasia c5ff05a54b Merge branch 'master' into stable 2017-11-23 11:28:20 +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 3b03593665 Merge branch 'master' into stable 2017-11-10 17:40:52 +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 f1e32508c0 Merge branch 'master' into stable 2017-10-30 15:03:10 +03:00
Anastasia 3a1d5c430f Version 2.0.10 2017-10-30 15:02:56 +03:00
Anastasia 38726e7154 Merge branch 'master' into stable 2017-10-10 19:11:37 +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 e90527d990 Merge branch 'master' into stable. Version 2.0.6. 2017-10-04 12:25:38 +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