Commit Graph
104 Commits
Author SHA1 Message Date
Arthur Zakirov 87fb4fae93 Fix bug: get_control_value() should use signed long int; refactor restore_data_file(), so the loop will break in first truncated block 2018-07-24 15:48:44 +03:00
Arthur Zakirov ee3ce85235 PGPRO-427: Merge with master 2018-07-19 12:15:06 +03:00
Arthur Zakirov 4c3a86f3b0 Fix bug: count CRC for data not for pointer 2018-07-18 19:44:11 +03:00
Anna 086cd4f7d4 Separated data.c => backup_data_page() into 2 functions:
prepare_page() and compress_and_backup_page().
Additionally, fixed formatting in some places.
(task pgpro-1726 in jira)
2018-07-13 19:34:51 +03:00
Grigory Smolkin 963eb2e2c6 check for interrupt more frequently 2018-07-11 10:29:36 +03:00
Arthur Zakirov 7f87c1cebe Add pagemap_isabsent instead of PageBitmapIsAbsent define 2018-06-29 14:01:08 +03:00
Arthur Zakirov b97e9e8e29 PGPRO-427: Put in order thread arguments 2018-06-15 11:40:13 +03:00
Arthur Zakirov 03a3fb8a14 PGPRO-1646: Use int64 for write_size 2018-06-09 15:14:44 +03:00
Arthur Zakirov 74d9e43774 PGPRO-1646: Use int for write_size instead of size_t 2018-06-09 12:32:40 +03:00
Arthur Zakirov e36daf5d1d Merge master into pg_probackup_windows 2018-06-07 19:13:11 +03:00
Grigory Smolkin 8371dbfe19 minor fix to error messages about unexpected page size 2018-04-27 16:51:17 +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 83d2fb3061 PGPRO-1457: minor changes proposed by Arthur Zakirov 2018-03-14 18:36:31 +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
Grigory Smolkin 70d7e463bb PGPRO-1457: backup mode DELTA 2018-02-26 17:53:29 +03:00
Arthur Zakirov 126db4a202 Make compiler happy 2018-02-12 18:39:50 +03:00
Grigory Smolkin 1f31693658 minor changes to log level and log messages 2018-01-23 13:43:31 +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 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 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 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 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
Arthur Zakirov 41de50c385 PGPRO-692: Use .partial suffix instead of .temp 2017-12-26 11:11:04 +03:00
Anastasia 114a575a52 Merge branch 'master' into fix_ptrack_1230 2017-12-22 14:46:32 +03:00
Arthur Zakirov 269812aafc PGPRO-692: archive-push/archive-get to .temp file first, then rename() 2017-12-18 12:12:34 +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
Arthur Zakirov e330230d61 PGPRO-1184: unlink WAL file on error 2017-12-14 12:35:00 +03:00
Arthur Zakirov c5e425995d PGPRO-692: Do not compress .history and .backup files. Improve messages. 2017-12-14 12:17:14 +03:00
Arthur Zakirov 3e06d9fedc PGPRO-692: Improve check of compress-algorithm and compress-level 2017-12-13 15:11:29 +03:00
Arthur Zakirov 7b0d214c0b PGPRO-692: Compress/Decompress WAL files during archive-push/archive-get 2017-12-12 15:07:13 +03:00
Grigory Smolkin 5534b107a0 minor changes to log messages 2017-11-22 17:04:46 +03:00
Arthur Zakirov d153c26104 PGPRO-1159: Try reread partly read block 2017-11-21 17:26:34 +03:00
Arthur Zakirov 6878de124a PGPRO-1159: Do not throw an error if file was truncated 2017-11-21 17:26:34 +03:00
Anastasia a40d0e3702 code cleanup for 22cb8c60aa 2017-11-10 14:13:44 +03:00
Grigory Smolkin 22cb8c60aa PGPRO-1148 fix; ptrack fix for multiple segments and _ptrack missing cases 2017-11-09 12:47:37 +03:00
Arthur Zakirov 304122dc64 Fix page and ptrack backup. It is necessary to backup only changed relations 2017-11-01 15:13:02 +03:00
Grigory Smolkin 15b457de90 small cfs fixes 2017-10-23 10:21:39 +03:00
Grigory Smolkin f0939cf33a cfs backup 2017-10-19 13:33:31 +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 1befa474aa fix redundant check in page validation 2017-09-28 12:42:19 +03:00