1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00
Commit Graph

1243 Commits

Author SHA1 Message Date
Grigory Smolkin
803c607b46 [Issue #187] Do not wait for WAL segment, previous to WAL segment with START LSN, when running backup in archive mode 2020-03-20 21:40:40 +03:00
Victor Spirin
98c22cae46 Updated documentation and test for --status option of delete command 2020-03-17 21:48:43 +03:00
Victor Spirin
a365520a1c Removed --error-state option and added --status option for delete command 2020-03-16 19:44:35 +03:00
Grigory Smolkin
4a247e8311 [Issue #182] do not set remote parameters into config when running add-instance via ssh 2020-03-15 19:02:15 +03:00
Grigory Smolkin
925b7d588e [Issue #149] help update 2020-03-15 12:00:14 +03:00
Grigory Smolkin
48e4427f6b [Issue #149] add option -S | --primary-slot-name 2020-03-14 21:42:25 +03:00
Grigory Smolkin
5a715305ca Merge branch 'master' into issue_149 2020-03-14 17:53:14 +03:00
Grigory Smolkin
86fd79512a [Issue #172] Optimize remote backup in PAGE and PTRACK modes 2020-03-14 14:35:57 +03:00
Grigory Smolkin
6d0eb79323 restore: close ssh connection before exit 2020-03-14 01:50:49 +03:00
Konstantin Knizhnik
9bd2bea0b7 Wait remote agent to complete its work 2020-03-13 19:57:15 +03:00
Victor Spirin
884fed1a64 Some fix for --note option 2020-03-12 15:06:27 +03:00
Victor Spirin
a7943c1b46 Added --note option for backup command 2020-03-12 14:54:03 +03:00
Grigory Smolkin
15228f3553 [Issue #169] merge: handle the case of crash right after deletion of the target incremental backup. It should be possible to rerun merge by using the backup ID of deleted backup as an argument 2020-03-06 11:47:25 +03:00
Grigory Smolkin
7b342e3946 Merge branch 'issue_171' 2020-03-06 02:31:35 +03:00
Grigory Smolkin
9d450331f2 Merge branch 'master' into issue_169 2020-03-05 11:28:36 +03:00
Grigory Smolkin
4f1a76bcf4 [Issue #184] Don`t issue fsync when copying file by archive-get 2020-03-05 11:25:52 +03:00
Grigory Smolkin
9811acfa45 Merge branch 'master' into issue_169 2020-03-04 01:20:49 +03:00
Grigory Smolkin
c3d716383a [Issue #178] enabled logging into file breaks recovery via archive-get 2020-03-03 23:42:10 +03:00
Grigory Smolkin
e9c31759c5 [Issue #169] pgFileGetCRC refactoring, now it operates only locally 2020-03-03 16:57:09 +03:00
Grigory Smolkin
8110715dbf [Issue #169] review: remove slurpFileFullPath 2020-03-03 15:59:19 +03:00
Grigory Smolkin
251e46c2ab [Issue #169] improve comments in merge 2020-03-02 21:07:09 +03:00
Grigory Smolkin
d57bf8ef05 [Issue #169] Addressing some issues, pointed out by Anastasia Lubennikova review: setbuf, comments, tests 2020-03-02 20:04:02 +03:00
Victor Spirin
1494a8e872 Added --error-state option for delete command 2020-02-25 18:29:51 +03:00
Grigory Smolkin
6f1ba680ab [Issue #171] minor fixes 2020-02-23 22:04:01 +03:00
Grigory Smolkin
80bcb80ada Merge branch 'issue_169' into issue_171 2020-02-22 18:29:50 +03:00
Grigory Smolkin
ba8c4caae0 use pgBackup->root_dir when procuring filelist of previous backup 2020-02-21 22:18:49 +03:00
Grigory Smolkin
5a17d07329 merge: improve wording in elog() messages 2020-02-21 17:28:27 +03:00
Grigory Smolkin
859b40dfe1 minor spelling fix 2020-02-20 19:34:29 +03:00
Grigory Smolkin
fa326c96e1 [Issue #169] minor spelling fixes 2020-02-20 18:32:14 +03:00
Grigory Smolkin
0b16fc0576 [Issue #169] fix merge of 0 sized files 2020-02-20 17:50:15 +03:00
Victor Spirin
e9af50464b Added --primary-conninfo option for restoring as replica 2020-02-20 15:23:04 +03:00
Grigory Smolkin
2d3f19e622 [Issue #169] minor improvements 2020-02-19 20:22:12 +03:00
Grigory Smolkin
9c662d5622 [Issue #169] Major refactoring of backup, restore and merge internal algorihtms 2020-02-18 19:59:57 +03:00
Grigory Smolkin
e1b0f1450f New fio command FIO_GET_CRC32 added and local behavior changed in fio_pread() 2020-02-18 19:48:35 +03:00
Grigory Smolkin
3962b02253 Allow validation of incremental backups with MERGING status 2020-02-17 20:14:42 +03:00
Grigory Smolkin
d37ade9096 validation should ignore empty and not changed files 2020-02-09 21:35:21 +03:00
Grigory Smolkin
2ad2af98f1 [Issue #169] added function slurpFileFullPath() 2020-02-09 21:34:13 +03:00
Grigory Smolkin
a1e005efa2 [Issue #169] Minor improvements to restore 2020-02-09 21:13:42 +03:00
Grigory Smolkin
d6567a2d67 [Issue #169] Set stdio buffers to 64KB when running "restore" 2020-02-06 14:49:58 +03:00
Konstantin Knizhnik
7d78d501a5 Decompress on agent's size 2020-02-06 14:39:52 +03:00
Grigory Smolkin
f165001c8d honest file->n_blocks for PAGE and PTRACK backups 2020-01-28 20:44:24 +03:00
Grigory Smolkin
506afe5c12 added some comments in backup_data_file() 2020-01-28 20:43:37 +03:00
Grigory Smolkin
9c3d299854 [Issue #169] check for interrupt more frequently during restore 2020-01-28 20:42:47 +03:00
Grigory Smolkin
ee36dd9d29 [Issue #169] Calculate appoximate efficiency ratio when restoring backup 2020-01-27 11:41:49 +03:00
Grigory Smolkin
c0541a6068 [Issue #169] Minor improvements 2020-01-26 22:04:07 +03:00
Grigory Smolkin
bf5b8f6b48 [Issue #169] fio_sync() added 2020-01-26 21:39:19 +03:00
Grigory Smolkin
577e8763bc [Issue #169] Refactoring, added support for external directories and bugfixes 2020-01-26 03:41:55 +03:00
Grigory Smolkin
7f983c599a [Issue #169] Restore optimization 2020-01-22 02:58:40 +03:00
Grigory Smolkin
00ea177048 Version 2.2.7 2020-01-07 21:18:28 +03:00
Grigory Smolkin
20d09c4786 Add some comments 2020-01-04 19:52:11 +03:00
Grigory Smolkin
9af67ed097 Revert "use IsXLogFileName() when parsing xlog filenames"
This reverts commit 6ad38c62ce.
2020-01-04 19:50:35 +03:00
Grigory Smolkin
9cce8639b4 [Issue #168] use heap variable as buffer in write_backup_filelist() instead of stack variable 2020-01-04 14:48:10 +03:00
Grigory Smolkin
6ad38c62ce use IsXLogFileName() when parsing xlog filenames 2020-01-02 20:51:50 +03:00
Anastasia
95459a8363 fix buffer size in write_backup_filelist 2019-12-30 12:59:14 +03:00
Anastasia
c2f52dc86d Fix for [Issue #155]. Allocate destination buffer size correctly 2019-12-30 12:29:18 +03:00
Grigory Smolkin
f431452ea9 Version 2.2.6 2019-12-29 21:43:23 +03:00
Victor Spirin
2a89a60e2f Fixed call_atexit_callbacks function 2019-12-29 17:04:48 +03:00
Grigory Smolkin
07557566f4 leftover fix for stack buffer overflow 2019-12-29 14:49:41 +03:00
Grigory Smolkin
e1dfb614cf fix stack buffer overflow 2019-12-29 14:23:28 +03:00
Grigory Smolkin
b0efb76003 use portable unlink in delete_walfiles_in_tli() 2019-12-29 02:11:10 +03:00
Grigory Smolkin
c6c6053458 [Issue #159] pgdata_bytes for FULL and DELTA remote backups was calculated incorrectly 2019-12-27 19:57:27 +03:00
Grigory Smolkin
ee3e8d11e3 [Issue #165] Report errno correctly when failed to access instance directory 2019-12-27 01:17:22 +03:00
Grigory Smolkin
fc81de2398 Merge branch 'master' into issue_150 2019-12-27 00:56:00 +03:00
Grigory Smolkin
2b23095c10 [Issue #155] Use full filename as segno 2019-12-27 00:38:55 +03:00
Grigory Smolkin
2e6aa530ad [Issue #150] added set_backup.SetBackupTest.test_wal_retention_and_pinning and set_backup.SetBackupTest.test_wal_retention_and_pinning_1 2019-12-26 00:08:57 +03:00
Grigory Smolkin
70c0530f64 Merge branch 'master' into issue_150 2019-12-25 17:56:09 +03:00
Alexey Kondratov
64d35c5022 Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
Grigory Smolkin
5f0c024422 [Issue #150] Pinned backups should be ignored for the purpose of WAL retention fulfillment 2019-11-17 11:35:53 +03:00
Grigory Smolkin
e1ed647c21 [Issue #149] Allow to set primary_slot_name during restore, option "-S,--slot" can now be used with "restore" command 2019-11-15 10:56:00 +03:00
Grigory Smolkin
0d028b79ec wal_bytes for ARCHIVE backups was calculated incorrectly 2019-11-01 18:42:20 +03:00
Grigory Smolkin
d2c60ca52f Version 2.2.5 2019-10-31 20:12:33 +03:00
Grigory Smolkin
f8a6a26f98 [Issue #140] report correctly the total size of data to delete during backup and WAL retention purge 2019-10-31 13:14:28 +03:00
Grigory Smolkin
7244ee3b86 [Issue #138] always set "restore_command" in recovery.conf if "--restore-command" option is provided 2019-10-30 18:16:00 +03:00
Victor Spirin
e0871de361 PGPRO-3138: Added #undef open(a, b, c) for Windows build 2019-10-29 18:10:31 +03:00
Grigory Smolkin
56736b1d2a make compiler happy 2019-10-28 16:13:58 +03:00
Grigory Smolkin
8134a6866f [Issue #139] fix incorrect "Zratio" calculation in show --archive 2019-10-28 14:14:27 +03:00
Grigory Smolkin
3d4c2f23e5 [Issue #134] use new logging infrastructure introduced in PG12 2019-10-28 12:12:15 +03:00
Grigory Smolkin
386c2cb1b4 Version 2.2.4 2019-10-24 18:28:18 +03:00
Grigory Smolkin
2c4eb9d534 [Issue #134] minor refactoring 2019-10-24 17:53:20 +03:00
Grigory Smolkin
2df5d27a66 Add TODO in config_get_opt() 2019-10-23 11:31:29 +03:00
Grigory Smolkin
ef20e82a6f [Issue #136] fix incorrect XlogSegNo calculation in catalog_get_timelines() 2019-10-22 21:16:49 +03:00
Grigory Smolkin
3b2af9e83c [Issue #134] set recovery_target_timeline to "current" 2019-10-21 13:42:51 +03:00
Grigory Smolkin
0ad96362d0 rename create_pg12_recovery_config() to create_recovery_config() 2019-10-19 12:30:58 +03:00
Grigory Smolkin
b9e76a1c4f [Issue #133] small fix 2019-10-19 12:28:41 +03:00
Grigory Smolkin
98f0c9ee48 [Issue #133] call pgpro_edition() function only if it exists 2019-10-19 12:22:07 +03:00
Grigory Smolkin
af42fbf9b6 remove spooky warning about first segment been greater than oldest to_keep segments 2019-10-18 19:43:13 +03:00
Grigory Smolkin
ff40fcc4be [Issue #134] do not backup "recovery.signal" and "standby.signal" files, and for PG12 and newer always set recovery_target_timeline to current 2019-10-18 19:42:02 +03:00
Grigory Smolkin
19ad13d777 [Issue #134] PostgreSQL 12 support 2019-10-18 12:36:42 +03:00
Grigory Smolkin
e60cb2041b Version 2.2.3 2019-10-15 21:51:15 +03:00
Grigory Smolkin
3ae1fc2ca7 bigfix: WAL retention didn`t protected WAL segments entitled to protection 2019-10-15 21:48:07 +03:00
Grigory Smolkin
c1b4110d47 Version 2.2.2 2019-10-15 15:39:03 +03:00
Grigory Smolkin
74e6a5fcd9 [Issue #132] new flag "--force" for "restore" command allows to ignore invalid backup status during restore 2019-10-15 13:11:41 +03:00
Grigory Smolkin
f49c1970ef [Issue #132] validate is now capable of detecting metadata corruption produced by #132 2019-10-15 13:00:24 +03:00
Grigory Smolkin
251fc8382a [Issue #132] fix 2019-10-15 12:53:53 +03:00
Grigory Smolkin
17143835dc speed up merge by skipping block validation during merge 2019-10-15 00:19:52 +03:00
Grigory Smolkin
ae4e64010c minor fix 2019-10-12 00:07:12 +03:00
Grigory Smolkin
6e2a1a73ef make compiler happy 2019-10-11 23:57:51 +03:00
Grigory Smolkin
baa88de2c5 make compiler happy 2019-10-11 23:49:34 +03:00
Grigory Smolkin
96ba94862a Version 2.2.1 2019-10-11 19:20:25 +03:00
Grigory Smolkin
0a1a2b676e [Issue #131] '--dry-run' flag is honored by the deletion of specific backup 2019-10-11 19:07:42 +03:00
Grigory Smolkin
4a5a9efe01 honot the special value 'none' for restore_command 2019-10-11 15:47:35 +03:00
Grigory Smolkin
bd5226cf5a minor fix 2019-10-11 15:14:50 +03:00
Grigory Smolkin
e643b81931 minor fix 2019-10-11 15:11:55 +03:00
Grigory Smolkin
f725966c3b minor cleanup before 2.2.0 release 2019-10-11 15:07:04 +03:00
Grigory Smolkin
5c4ad52e6d Version 2.2.0 2019-10-09 21:10:02 +03:00
Grigory Smolkin
1534590bba help: new option '--wal-depth' 2019-10-09 00:00:05 +03:00
Grigory Smolkin
1d8a654726 [Issue #127] WAL retention 2019-10-08 17:47:41 +03:00
Grigory Smolkin
51f4e38d70 new TODO 2019-10-08 14:34:56 +03:00
Grigory Smolkin
9edb2e3498 minor improvement: for STREAM backups include wal_bytes into message about resident data size 2019-10-07 20:39:16 +03:00
Grigory Smolkin
59c341a2bb bugfix: duplicate returned by last_dir_separator() string for file->name 2019-10-07 20:24:40 +03:00
Grigory Smolkin
c4b49c6abb [Issue #68] the backup pinning 2019-10-07 14:28:03 +03:00
Grigory Smolkin
0cd9e35028 [Issue #129] minor fix 2019-10-07 11:47:56 +03:00
Grigory Smolkin
20d8820d7a [Issue #129] Generate recovery.conf if --recovery-target='immediate' is provided 2019-10-06 21:48:44 +03:00
Grigory Smolkin
65969267fd [Issue #60] Calculate compression ratio("zratio") during backup 2019-10-04 17:20:55 +03:00
Konstantin Knizhnik
d02fc64a14 Terminate ssh error by zero character 2019-10-04 10:13:26 +03:00
Grigory Smolkin
b7d5d6c459 help: another minor update 2019-10-04 09:16:23 +03:00
Grigory Smolkin
8d6d1c6e40 help: minor update 2019-10-04 00:01:56 +03:00
Grigory Smolkin
544de123a4 [Issue #102] now it is possible to set restore_command via set-config 2019-10-03 23:56:47 +03:00
Grigory Smolkin
56726b25fa [Issue #128] Get timeline ID via pg_control_checkpoint() function 2019-10-03 13:07:47 +03:00
Grigory Smolkin
c2d32da0a0 [Issue #124] report correct backup status if corruption is detected during validation. Reported By Yuri Kurenkov 2019-10-02 17:32:27 +03:00
Grigory Smolkin
6fe844004e Improvements for plain show, honest wal_bytes for STREAM backups and merged backups 2019-09-24 18:28:10 +03:00
Grigory Smolkin
cb6431369a add double quotes to filenames in elog messages 2019-09-24 18:01:40 +03:00
Grigory Smolkin
7121f04e71 [Issue #102] New options for 'restore' command used for setting 'restore_command' GUC in recovery.conf: '--archive-host', '--archive-post', 'archive-user' and '--restore-command' 2019-09-23 15:20:07 +03:00
Grigory Smolkin
435d114e5f Merge branch 'master' into wal_delete_refactoring 2019-09-23 14:06:38 +03:00
Anastasia
64d546780e [Issue #58] Handle SIGTERM and SIGQUIT 2019-09-23 14:00:24 +03:00
Grigory Smolkin
271d2d1305 Merge branch 'master' into wal_delete_refactoring 2019-09-23 13:57:35 +03:00
Grigory Smolkin
1d34fd8c84 minor fixes 2019-09-23 13:57:10 +03:00
Anastasia
1f67593175 code cleanup for wal_delete refactoring 2019-09-23 13:14:57 +03:00
Grigory Smolkin
0e4d9fcec3 help: add 'Retenion options' to delete section 2019-09-21 14:02:46 +03:00
Anastasia
c9d3c5845a Fix archive_catalog problem exposed by b1975e3ba.
Now it's legal  to find in archive two files with equal segno. This can happen if both compressed and non-compessed versions are present.
2019-09-20 16:08:12 +03:00
Grigory Smolkin
6b8ab83548 cleanup in delete.c 2019-09-20 16:04:54 +03:00
Grigory Smolkin
02840b81ab minor changes 2019-09-20 15:54:42 +03:00
Grigory Smolkin
eb9b2347eb [Issue #69] New algorithm of WAL purge, based on timelineInfo infrastructure 2019-09-20 11:02:47 +03:00
Grigory Smolkin
ec6a627d4d save files belonging to a timeline into xlog_filelist array in timelineInfo structure 2019-09-20 10:47:07 +03:00
Grigory Smolkin
f6ce9f0287 Ignore empty timelines in show archive 2019-09-19 14:53:09 +03:00
Grigory Smolkin
32e6407e03 make pretty_size() more precise 2019-09-19 09:51:15 +03:00
Grigory Smolkin
5b38c73089 Minor refactoring of WAL timelines constructor 2019-09-18 18:52:13 +03:00
Grigory Smolkin
b69e29bc0b Improve compatibility between different versions of binary and instance 2019-09-18 09:08:16 +03:00
Grigory Smolkin
d34a6a3ad8 [Issue #116] WAL archive information 2019-09-17 17:35:27 +03:00
Grigory Smolkin
11ab44fb04 [Issue #118]: trust txid_snapshot_xmax() when determining recovery_xid 2019-09-16 13:47:24 +03:00
Grigory Smolkin
9f817080e6 Merge branch 'issue_115' 2019-09-06 14:43:37 +03:00
Grigory Smolkin
64b05d9597 [Issue #115]: minor improvements 2019-09-06 14:34:49 +03:00
Grigory Smolkin
a98ff6154a [Issue #115]: some improvements of sanity and comments. Also do not wait for NullOffset LSN when looking for previous record 2019-09-06 13:20:42 +03:00
Grigory Smolkin
4dcbfc132b add comment to unlink_lock_atexit() 2019-09-06 11:43:57 +03:00
Grigory Smolkin
07f63e473b added some improvements based on review 2019-09-06 11:26:42 +03:00
Anastasia
0e2336fb6f code review for issue_115. add TODO comments 2019-09-05 16:14:50 +03:00
Grigory Smolkin
62acd2de2d [Issue #117] use suffix ".part" instead of ".partial" for WAL copying 2019-09-05 15:41:13 +03:00
Grigory Smolkin
7c5e799c21 [Issue #115] look-forward approach of handling the invalid stop_lsn received from replica 2019-09-05 10:46:01 +03:00
Grigory Smolkin
2aea9cc760 print stop_lsn with elevel LOG 2019-08-31 15:48:52 +03:00
Grigory Smolkin
0f0e961fea [Issue #79]: remove partial validate from help 2019-08-31 03:30:57 +03:00