1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-10 23:29:34 +02:00
Commit Graph

1197 Commits

Author SHA1 Message Date
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
Grigory Smolkin
d8b8b0898e [Issue #79]: remove partial validation 2019-08-31 02:16:45 +03:00
Grigory Smolkin
f270d38b0e [Issue #114]: allow invalid backups to be included in to_keep_list during retention purge 2019-08-28 20:26:36 +03:00
Grigory Smolkin
5707a727b5 added TODO comment for show 2019-08-28 18:52:22 +03:00
Arthur Zakirov
fb35cb83b6 Issue #112: Try to not hang out 2019-08-28 13:24:49 +03:00
Arthur Zakirov
8f1a45961a Issue #112: Set datestyle before pg_stop_backup() 2019-08-28 13:01:56 +03:00
Grigory Smolkin
9c4cdef76a [Issue #113] bugfix: use rel_path attribute insead of path for sorting purposes and bsearch 2019-08-27 20:21:02 +03:00
Grigory Smolkin
aef926ffd0 check for potential errors when fgets() returns NULL 2019-08-27 19:24:10 +03:00
Grigory Smolkin
a0dc029d32 Merge branch 'master' into issue_90 2019-08-12 19:17:41 +03:00
Grigory Smolkin
ecd37a7a34 update help 2019-08-12 18:54:56 +03:00
Grigory Smolkin
0ae5a66bfb partial_restore_type as separate type 2019-08-11 13:54:43 +03:00
Anastasia
dc76fb13d5 add verbose message 2019-08-09 17:13:31 +03:00
Grigory Smolkin
01e57eafba Merge branch 'master' into issue_79 2019-08-09 14:10:54 +03:00
Grigory Smolkin
cd00806f11 fix elog message about agent version mismatch 2019-08-09 12:50:38 +03:00
Konstantin Knizhnik
daca207735 Report ssh error if available 2019-08-09 01:45:23 +03:00
Konstantin Knizhnik
6a721aa004 Grab abnd log agent messages to stderr 2019-08-09 01:45:23 +03:00
Anastasia
6179808d23 implement partial validate. add db-include and db-exclude options to validate command 2019-08-08 17:55:23 +03:00
Anastasia
f36d81dc08 fix uninitialized var 2019-08-08 16:40:26 +03:00
Anastasia
037b7cf53b Merge branch 'master' into issue_79 2019-08-08 15:31:16 +03:00
Anastasia
d92434ff84 Refactoring of restore and validate options.
Collect them into pgRestoreParams structure
2019-08-08 15:29:36 +03:00
Grigory Smolkin
f4790b6291 write dbOid in write_backup_filelist() 2019-08-07 18:40:20 +03:00
Anastasia
5ae396f7d6 fix comparator 2019-08-07 17:13:19 +03:00
Anastasia
e8b9ca1ba8 code cleanup, add comments 2019-08-07 16:56:56 +03:00
Anastasia
52bf25ccd2 minor refactoring in restore.c to improve code readability 2019-08-07 13:23:17 +03:00
Grigory Smolkin
3cc9d81b65 [Issue #104] consider only OK and DONE backups as candidates for PITR validation if backup ID is not specified 2019-08-06 17:11:48 +03:00
Grigory Smolkin
6da63188eb [Issue #104] allow LSN as recovery target for validation if backup ID is not specified 2019-08-06 12:00:44 +03:00
Grigory Smolkin
b799b70400 Merge branch 'issue_106' 2019-08-06 00:07:01 +03:00
Grigory Smolkin
db901a7adf [Issue #103] minor fix 2019-08-06 00:00:34 +03:00
Grigory Smolkin
4783e61996 Merge branch 'master' into issue_103 2019-08-05 23:41:23 +03:00
Grigory Smolkin
738013fc05 Merge branch 'master' into issue_106 2019-08-05 23:36:29 +03:00
Anastasia
23697fff67 Review issue_79. Added several TODO comments 2019-08-05 16:22:07 +03:00
Anastasia
4611ee38f8 Merge branch 'master' into issue_79 2019-08-05 14:30:18 +03:00
Grigory Smolkin
ea2a4c2be3 bugfix: stream_stop_timeout was always initialized to 0 2019-08-02 12:00:10 +03:00
Grigory Smolkin
b6e97e47f2 [Issue #106] fix agressive retention purging of backups with empty recovery-time 2019-08-02 11:50:28 +03:00
Grigory Smolkin
52ed2e1651 one more fix for error messages about wrong agruments for 'delete' command 2019-08-01 22:15:59 +03:00
Grigory Smolkin
98f5bbd3cf fix error message about wrong agruments for 'delete' command 2019-08-01 22:10:59 +03:00
Grigory Smolkin
7ead1199c2 bugfix: print "version" command output to stdout instead of stderr 2019-07-31 17:17:26 +03:00
Grigory Smolkin
8623628839 Merge branch 'master' into issue_79 2019-07-30 16:02:28 +03:00
Grigory Smolkin
759aefc0cb [Issue #103] select oldest backup with valid start_lsn and tli to determine oldest lsn for WAL purge 2019-07-30 01:20:24 +03:00
Grigory Smolkin
0309dd7a20 minor bugfix: initialize backup.control before libpq connection, so errors are logged and failed backup gain ERROR status 2019-07-29 00:55:53 +03:00
Grigory Smolkin
b55bfe82be Version 2.1.5 2019-07-26 11:05:19 +03:00
Konstantin Knizhnik
19ea1bf5dc Eliminate waitpid for Windows 2019-07-25 15:11:46 +03:00
Grigory Smolkin
79f6733469 Merge branch 'master' into issue_79 2019-07-24 00:36:03 +03:00
Grigory Smolkin
c0d3ab5456 [Issue #101] replace "sparse" with "compact" 2019-07-23 21:52:50 +03:00
Grigory Smolkin
db73f84057 [Issue #101] Multiple spelling fixes. Reported by Alexander Lakhin 2019-07-23 20:11:11 +03:00
Grigory Smolkin
05d8ecc253 Merge branch 'master' into issue_83 2019-07-19 14:37:47 +03:00
Grigory Smolkin
bb6d32fd33 Release 2.1.4 2019-07-19 12:20:39 +03:00