1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-04 10:44:46 +02:00
Commit Graph

339 Commits

Author SHA1 Message Date
Grigory Smolkin
5bed18c378 Merge branch 'master' into pgpro-1286-no-validation-restore 2018-07-18 08:41:30 +03:00
Arthur Zakirov
059d3845cb Issue #31: Times in backup.control is in UTC by default 2018-07-16 15:18:08 +03:00
Arthur Zakirov
188bb11196 Revert "Issue #31: Use UTC time to make backup ID"
This reverts commit 4877f6b5d4.
2018-07-16 15:02:50 +03:00
Arthur Zakirov
4877f6b5d4 Issue #31: Use UTC time to make backup ID 2018-07-16 14:22:54 +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
e90714bcd4 Push down path variable 2018-07-10 14:53:16 +03:00
Aleksandr Parfenov
e947cac142 Change INFO message in --no-validate mode 2018-07-09 20:35:59 +07:00
Arthur Zakirov
1d5f54c5ee PGPRO-1376: Do not call dir_is_empty() twice, because readdir() may bring different ordering 2018-07-06 19:18:05 +03:00
Aleksandr Parfenov
29639f71d6 Fix --no-validate counting as recovery target 2018-07-05 16:47:56 +03:00
Arthur Zakirov
be8f3be6cd PGPRO-1759: Fix messages and variable names, it should be data not date 2018-07-05 13:19:18 +03:00
Grigory Smolkin
3080228453 fix: add restore-target-name to validate --help. Submitted by Ludmila Mantrova. 2018-07-04 18:37:36 +03:00
Arthur Zakirov
7f87c1cebe Add pagemap_isabsent instead of PageBitmapIsAbsent define 2018-06-29 14:01:08 +03:00
Victor Spirin
6b539ad59a set 0 to PageBitmapIsAbsent 2018-06-28 12:37:44 +03:00
Arthur Zakirov
e2b2dee05e PGPRO-427: Add header size into WAL record start pointer 2018-06-22 17:26:38 +03:00
Victor Spirin
a2959609c8 Some changes for windows 2018-06-19 14:50:35 +03:00
Victor Spirin
bc016cfa61 some change for removing visual studio build error: potentially uninitialized local pointer variable 'error_args' 2018-06-19 13:52:31 +03:00
Arthur Zakirov
6e0f5bb68b PGPRO-427: Process blocks change in parallel 2018-06-18 11:47:29 +03:00
Arthur Zakirov
b97e9e8e29 PGPRO-427: Put in order thread arguments 2018-06-15 11:40:13 +03:00
Arthur Zakirov
a3b9d1ebbb PGPRO-427: Add lock for datapagemap_add 2018-06-15 11:40:13 +03:00
Arthur Zakirov
70257b371f PGPRO-427: Remove unnecessary sorts, add binary search 2018-06-15 11:40:13 +03:00
Arthur Zakirov
6a95d7cf75 PGPRO-427: A little optimization in process_block_change() 2018-06-15 11:40:13 +03:00
Arthur Zakirov
dac3958eec Return command line parse algorithm 2018-06-14 19:42:19 +03:00
Victor Spirin
b10fdf119d Update command line parse 2018-06-14 16:22:25 +03:00
Victor Spirin
f336db6482 Add include pg_getopt.h 2018-06-14 12:01:18 +03:00
Arthur Zakirov
d3b1127ab3 Remove duplicate help command code 2018-06-09 18:14:47 +03:00
Arthur Zakirov
0afc00439c Use optind to parse subcommand name 2018-06-09 18:05:18 +03:00
Arthur Zakirov
1304c88ce7 Minor style fixes 2018-06-09 15:45:03 +03:00
Arthur Zakirov
03a3fb8a14 PGPRO-1646: Use int64 for write_size 2018-06-09 15:14:44 +03:00
Arthur Zakirov
1da749aa5e Default compression level is 1, use NOT_DEFINED_COMPRESS for not defined compression algorithm 2018-06-09 13:55:30 +03:00
Arthur Zakirov
74d9e43774 PGPRO-1646: Use int for write_size instead of size_t 2018-06-09 12:32:40 +03:00
Victor Spirin
bd1f5c478c Some changes after Windows testing 2018-06-08 13:22:39 +03:00
Arthur Zakirov
e36daf5d1d Merge master into pg_probackup_windows 2018-06-07 19:13:11 +03:00
Arthur Zakirov
8f6fb524fd Merge branch 'pgpro-533' 2018-06-07 14:55:12 +03:00
Arthur Zakirov
9cd12fbe05 PGPRO-533: Update hellp command 2018-06-07 14:54:25 +03:00
Grigory Smolkin
efc0c8cda3 bugfix: WAL delivery timeout could cause PostgreSQL instance to be left in in_backup state 2018-06-07 12:22:45 +03:00
Arthur Zakirov
c71151d3df PGPRO-533: Add json format for show-config 2018-06-06 14:07:10 +03:00
Aleksandr Parfenov
02fd1878bb Add help message for --no-validate 2018-06-05 16:06:22 +03:00
Aleksandr Parfenov
93e85cb86e Add --no-validate option for restore command 2018-06-04 11:27:00 +03:00
Arthur Zakirov
8aa559b17b PGPRO-533: Reformat json output 2018-06-01 17:26:56 +03:00
Arthur Zakirov
733354c40f PGPRO-533: Reformat json output, add program-version to backup.control 2018-06-01 17:09:32 +03:00
Arthur Zakirov
6df8c2aaec PGPRO-533: Replace instance-name by instance, fix typos 2018-05-31 20:31:12 +03:00
Anastasia
e71312cc03 add parent_backup_link to pgBackup structure. No usage for now 2018-05-30 20:56:01 +03:00
Arthur Zakirov
6d709fb51c Use strcmp() instead of strverscmp() 2018-05-22 14:02:08 +03:00
Arthur Zakirov
ceaa2ce9cd PGPRO-533: Allow to show backup list in json format 2018-05-21 19:06:12 +03:00
Anastasia
0b0a48ff4c add support of ptrack 1.6 2018-05-21 17:37:59 +03:00
Arthur Zakirov
37ced690ad Fix gcc warning messages 2018-05-16 10:12:16 +03:00
Arthur Zakirov
d8005d5496 PGPRO-1290: Check connected server version with build version 2018-05-16 10:00:49 +03:00
Grigory Smolkin
c408a0ea47 bump version to 2.0.17 2018-05-03 14:14:55 +03:00
Grigory Smolkin
93640d2825 Remove implicit immediate restore target when none other is provided. All restore target should be explicit 2018-05-01 13:47:01 +03:00
Arthur Zakirov
46d0db2063 Fix building for pg9.5 2018-04-29 19:48:49 +03:00
Arthur Zakirov
880ef9f70b Parse pg_ptrack_get_and_clear_db() result correctly 2018-04-28 23:51:51 +03:00
Grigory Smolkin
def0ac28ed Merge branch 'pgpro-1376' 2018-04-28 18:46:28 +03:00
Arthur Zakirov
3b3e55b267 PGPRO-1376: Remove continue 2018-04-28 12:17:58 +03:00
Arthur Zakirov
0f768dc35f PGPRO-1376: Backup _init forks 2018-04-28 11:44:45 +03:00
Arthur Zakirov
42e040d287 PGPRO-1376: Do not include ptrack_init file in backup 2018-04-28 01:03:22 +03:00
Arthur Zakirov
74822dd3ae PGPRO-1376: Do not mark fork files as datafile 2018-04-27 17:12:29 +03:00
Grigory Smolkin
8371dbfe19 minor fix to error messages about unexpected page size 2018-04-27 16:51:17 +03:00
Arthur Zakirov
a6aea8663d Fix deadlock: properly unset loggin_in_progress 2018-04-27 12:49:21 +03:00
Arthur Zakirov
b1b1b1451a Fix deadlock: unlock before pthread_exit() 2018-04-26 16:30:52 +03:00
Grigory Smolkin
f133f29999 Merge branch 'master' into pgpro-1376 2018-04-25 19:14:57 +03:00
Arthur Zakirov
a67e2c065c Issue #26: Lock mutex accurately, the approach wasnt thread safe 2018-04-25 17:24:24 +03:00
Arthur Zakirov
b7caea5896 PGPRO-1376: Do not copy tablespace files twice 2018-04-24 17:45:30 +03:00
Grigory Smolkin
5c3acb6b89 Merge branch 'pgpro_1053_697' 2018-04-11 19:48:08 +03:00
Arthur Zakirov
e15469891f Initialize main_tid before any elog() calls 2018-04-11 12:07:31 +03:00
Grigory Smolkin
5f62980cb6 Merge branch 'master' into pgpro_1053_697 2018-04-11 02:25:11 +03:00
Arthur Zakirov
45988aae68 Make replication connection outside StreamLog() 2018-04-10 19:02:00 +03:00
Arthur Zakirov
ad083f827b PGPRO-1311: Fix for PostgreSQL 9.6 2018-04-09 00:10:52 +03:00
Arthur Zakirov
2e436111ec PGPRO-1311: Do not call exit() for thread, use pthread_exit() instead 2018-04-05 18:58:40 +03:00
Arthur Zakirov
f25ae416a7 Remove Assert() in StreamLog() 2018-04-05 14:09:37 +03:00
Arthur Zakirov
055daf7a35 Show finished streaming WAL message correctly 2018-04-04 17:06:50 +03:00
Arthur Zakirov
834d64b30c Fix wrong message for finished segment, add finished streaming message 2018-04-04 12:40:35 +03:00
Grigory Smolkin
85adfcb9aa bugfix: initialize log_file_level after reading config, not before 2018-04-03 22:10:10 +03:00
Grigory Smolkin
c90210910b minor fixes and changes to elog messages 2018-03-26 19:50:49 +03:00
Grigory Smolkin
351ce4afd7 set default recovery target to pause, minor fixes for help, tests coverage 2018-03-23 13:23:17 +03:00
Arthur Zakirov
73eb5f266f Make compiler happy 2018-03-20 17:09:57 +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
Grigory Smolkin
bea0f8ef63 Github Issue 24: check PQresultStatus for pg_stop_backup() 2018-03-19 20:51:01 +03:00
Grigory Smolkin
f685305eed Merge branch 'pgpro-1504' 2018-03-17 01:41:35 +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
f960c67db4 PGPRO-1504: minor changes to comments 2018-03-15 13:43:11 +03:00
Grigory Smolkin
32b5017d38 PGPRO-1504: during validation attemp to revalidate CORRUPT and ORPHAN backups 2018-03-15 13:34:51 +03:00
Grigory Smolkin
83d2fb3061 PGPRO-1457: minor changes proposed by Arthur Zakirov 2018-03-14 18:36:31 +03:00
Grigory Smolkin
14e1ae264b Merge remote-tracking branch 'origin/master' into pgpro-1457 2018-03-06 16:17:13 +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
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
Grigory Smolkin
9fd5a22506 bugfix: datafiles in directory global were not handled as datafiles, also _ptrack files in directory global were copied to backup 2018-03-01 22:24:21 +03:00
Arthur Zakirov
8977e0e3df Use stream_wal instead of current.stream 2018-02-27 18:39:07 +03:00
Grigory Smolkin
70d7e463bb PGPRO-1457: backup mode DELTA 2018-02-26 17:53:29 +03:00
Arthur Zakirov
615c94c37e Check --instance for VALIDATE with target parameters 2018-02-26 16:26:28 +03:00
Arthur Zakirov
025dc07988 Revert "Check --instance for VALIDATE"
This reverts commit a98bc4e840.
2018-02-26 16:24:21 +03:00
Arthur Zakirov
604e867bd1 Fix parse_time(): it is possible TZ may be zero 2018-02-13 12:26:07 +03:00
Arthur Zakirov
a98bc4e840 Check --instance for VALIDATE 2018-02-12 19:50:43 +03:00
Arthur Zakirov
126db4a202 Make compiler happy 2018-02-12 18:39:50 +03:00
Arthur Zakirov
0985222c3c Show command line for BACKUP, RESTORE, VALIDATE, DELETE 2018-02-12 18:35:35 +03:00
Arthur Zakirov
8787a061e6 Fix check_server_version() for Pg10+ 2018-02-09 13:22:01 +03:00
Grigory Smolkin
492c691d07 derive server_version_string from server_version_num, because server_version can be changed at compile time by --with-extra-version 2018-02-09 00:25:02 +03:00
Grigory Smolkin
f9e36ee01e Version 2.0.15
- fix infinite loop in page validation
- fix segfault in parallel ptrack connections
- allow to use delete-wal option wihtout delete-expired(in accordance with documentation)
- allow to use pg_ptrack_get_block if it`s available and page is invalid
- help update
- testgres 1.3 support
- pglz is not thread-safe, do not allow multithread backup with pglz compression
- multiple minor fixes
2018-02-07 07:12:37 +03:00
Grigory Smolkin
0fa7217326 correct binary name for restore_command in recovery.conf 2018-02-06 22:35:54 +03:00