Commit Graph
100 Commits
Author SHA1 Message Date
Anastasia 594badfe2f Merge branch 'doc_markdown' 2019-06-13 17:58:11 +03:00
Anastasia Lubennikova 5a739fa6e2 Update Documentation.md 2019-06-13 17:57:39 +03:00
Anastasia Lubennikova a1f2f1f85a Update Documentation.md 2019-06-13 17:49:02 +03:00
Anastasia Lubennikova 4cbd8fbb40 Update Documentation.md 2019-06-13 17:34:15 +03:00
Anastasia bc0952a959 add Documentaion.md 2019-06-13 17:32:43 +03:00
Anastasia 30126c6eb5 Refactoring of checkdb. Move code to a separate file, improve error messages 2019-05-31 18:15:43 +03:00
Anastasia b09140af4d remove unused function: create_data_directories_manual() 2019-05-27 16:05:00 +03:00
Anastasia 85afe5a273 Merge branch 'refactoring_after_2.1.1' 2019-05-06 17:12:35 +03:00
Anastasia c411a8cffd refactoring. remove unused move_file(), remove_trailing_space(), remove_not_digit() functions 2019-05-06 11:43:26 +03:00
Anastasia 109af56a50 refactoring. remove unneeded calc_file_checksum() function 2019-05-06 11:32:34 +03:00
Anastasia 14418a200f refactoring. move WAL related functions to archive.c 2019-05-06 11:27:42 +03:00
Anastasia 9dacdaad8f remove unused code related to remote backup via replication protocol, which was not implemented 2019-05-06 11:16:00 +03:00
Anastasia 9a785d6fa0 fix compiler warning. TODO: fix checkdb test 2019-04-18 17:20:22 +03:00
Anastasia c00bd3cd77 code and comments cleanup 2019-04-18 16:12:57 +03:00
Anastasia 6d0059092c Merge branch 'master' into pgpro-2065 2019-04-17 17:20:33 +03:00
Anastasia ce29d91957 Merge master into pgpro-2065. Resolve conflicts.
TODO: review compatibility of checkdb and remote backup
2019-04-16 16:33:03 +03:00
Anastasia df8fe86d6d code cleanup 2019-04-12 18:41:33 +03:00
Anastasia 1d5b9e469d Merge branch 'master' into pgpro-2065 2019-04-12 16:03:18 +03:00
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 b99097a71b pgpro-2065. fix cycle in do_amcheck, remove unused variables and debug messages. TODO: code cleanup, fix exit statuses for threads 2018-12-17 16:03:58 +03:00
Anastasia ac2236cc3d pgpro-2065. WIP. refactor code, add snapshot to amcheck. TODO fix eternal cycle in do_amchecl 2018-12-14 20:59:47 +03:00
Anastasia 5401eeb857 pgpro-2065. fix options parsing 2018-12-13 17:13:21 +03:00
Anastasia 1654eea349 Merge master into pgpro-2065 2018-12-13 16:44:46 +03:00
Anastasia 5b2cae5e81 pgpro-2065. filter global indexes 2018-12-13 16:20:51 +03:00
Anastasia 65e0ff9565 pgpro-2065. refactor the code, add option --block-validation аfor checkdb command 2018-12-13 14:14:59 +03:00
Anastasia ffd4b2f5cf pgpro-2065. WIP. fix amcheck return status, call amcheck function using correct schema name 2018-12-12 18:19:04 +03:00
Anastasia 26c2e066f6 code cleanup. remove obsolete exit_or_abort() function 2018-12-12 17:07:18 +03:00
Anastasia 5f404b5de4 pgpro-2065. fix logging for checkdb command 2018-12-11 17:37:52 +03:00
Anastasia 0eab1f6c13 PGPRO-2065 checkdb --amcheck. Draft version 2018-12-03 22:04:40 +03:00
Anastasia a9fd90a831 PGPRO-2065 checkdb. Draft version 2018-12-03 11:31:10 +03:00
Anastasia 2a62342e8b WIP checkdb command 2018-11-30 18:24:14 +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