Anastasia
0c2ce64c1b
fix restore of the truncated files
2018-01-15 15:35:51 +03:00
Arthur Zakirov
97d028efbb
Merge branch 'pgpro-1207'
2018-01-15 12:12:53 +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
Grigory Smolkin
8de10e25aa
minor fix for base36enc
2018-01-11 20:27:08 +03:00
Grigory Smolkin
eef374e267
Merge remote-tracking branch 'origin/pgpro-1248'
2018-01-10 21:24:00 +03:00
Grigory Smolkin
8d8a70f886
Merge branch 'pgpro-1248'
2018-01-10 21:18:31 +03:00
Arthur Zakirov
d96e8e24f2
PGPRO-1207: Add -W (--password) option
2018-01-10 19:17:38 +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
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
b0011282a7
Fix logging query text to a file
2017-12-20 17:59:11 +03:00
Arthur Zakirov
d2c9fceca0
Add base36enc() and base36enc_dup().
...
base36enc() - returns static text
base36enc_dup() - returns duplicated text, which should be released by a user
2017-12-20 17:57:01 +03:00
Grigory Smolkin
b6f1dd8fbe
PGPRO-1248: new status ORPHAN for backup with corrupted parent
2017-12-19 12:56:03 +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
Grigory Smolkin
7925496e07
allow to use delete --expired --wal even without established retention policy
2017-12-15 15:20:15 +03:00
Arthur Zakirov
4457529351
Merge branch 'pgpro-1184'
2017-12-14 18:10:14 +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
fbda56902b
PGPRO-692: Improve help for archive-push/archive-get
2017-12-13 13:39:49 +03:00
Grigory Smolkin
a43c951c78
PGPRO-1226: disable archiving_enable check
2017-12-13 11:15:55 +03:00
Arthur Zakirov
7b0d214c0b
PGPRO-692: Compress/Decompress WAL files during archive-push/archive-get
2017-12-12 15:07:13 +03:00
Arthur Zakirov
596ac3a37b
Issue #20 . Check system_identifier for PostgreSQL9.5.
...
System identifier is fetched via pg_read_binary_file() for Pg 9.5.
2017-12-11 15:44:54 +03:00
Arthur Zakirov
a528352919
Merge branch 'master' of github.com:postgrespro/pg_probackup
2017-12-11 14:06:47 +03:00
Raymond Tau
ee2b1a9c88
Add comment for check_system_identifiers
...
On the empty if case for skipping check before PG 9.6
2017-12-11 18:41:02 +08:00
Raymond Tau
67d17b5e73
Merge branch 'pg-9.5'
2017-12-11 18:34:53 +08:00
Raymond Tau
8192f0e58d
Make pg_probackup works again on PostgreSQL 9.5
...
Function pg_control_system is added in 9.6, which makes check on
9.5 fails all the time. Added logic to bypass that checking of
system identifier between data directory DB connection unless
DB version is >= 9.6
2017-12-11 18:25:39 +08:00
Grigory Smolkin
4efa7ab330
add message about Recovery Time
2017-12-08 16:53:00 +03:00
Grigory Smolkin
bdb47b744f
minor changes to elevel of certain messages
2017-12-08 16:24:35 +03:00
Grigory Smolkin
61d57b63db
ptrack minor optimization
2017-12-08 16:22:06 +03:00
Arthur Zakirov
3fcdae09bd
PGPRO-1205: Show PostgreSQL version via --version argument
2017-12-06 19:00:00 +03:00
Arthur Zakirov
a046e5f016
PGPRO-584: Remove old -l argument from help
2017-12-06 18:02:20 +03:00
Arthur Zakirov
dd6a1f496c
Fix help of init command
2017-12-04 14:29:50 +03:00
Arthur Zakirov
6cc75e16e1
Fix using of parse_uint64()
2017-12-01 17:38:10 +03:00
Arthur Zakirov
c68086a30e
Revert "Replace simple_prompt() by pgut_simple()."
...
This reverts commit 06aee9cbf6
.
2017-12-01 17:37:29 +03:00
Arthur Zakirov
ccdb4d748b
Merge branch 'pgpro-584'
2017-11-30 15:51:46 +03:00
Arthur Zakirov
3f0efe4c8f
Use pg_stat_file() with pg_read_file()
2017-11-30 15:49:48 +03:00
Grigory Smolkin
b4c56bf21c
Version 2.0.13
...
- Do not include not changed relations into the PAGE backup
- Correct procedure of obtaining backup_label and tablespace_map via SQL for exclusive backups
- Do PTRACK backups only for ptrack_version >= 1.4
2017-11-30 14:56:59 +03:00
Grigory Smolkin
b16dd21617
PGPRO-1189: fix for exclusive mode for backup from replica
2017-11-29 23:03:12 +03:00
Grigory Smolkin
d09413199a
spelling fix
2017-11-29 13:08:42 +03:00
Grigory Smolkin
a7bc86211c
PGPRO-1189: for exclusive backups get backup_label and tablespace_map via SQL
2017-11-29 12:51:43 +03:00
Grigory Smolkin
fac4250770
fix PAGE backup copying not changed files
2017-11-27 21:51:45 +03:00
Anastasia
b5a70fcfd9
check if ptrack_version == 1.4
2017-11-24 14:26:23 +03:00
Anastasia
fae522df4a
Version 2.0.12
...
- Do not include unlogged relations into the backup.
- Use exclusive backup for PTRACK backups.
- Do not throw an error if the file was truncated during backup.
2017-11-23 11:28:04 +03:00
Arthur Zakirov
d9a2038575
PGPRO-584: Save and load unit name for replica-timeout
2017-11-22 19:21:30 +03:00
Arthur Zakirov
78b510e82a
PGPRO-584: Save unit name within configuration file
2017-11-22 19:15:05 +03:00
Grigory Smolkin
be84258cd1
PGPRO-1164: fix restore without specified backup ID
2017-11-22 17:07:38 +03:00
Grigory Smolkin
5534b107a0
minor changes to log messages
2017-11-22 17:04:46 +03:00
Arthur Zakirov
a1eeef782e
PGPRO-584: Parse unit name of configuration parameters
2017-11-21 19:50:06 +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
Arthur Zakirov
a00fdafcec
Use exclusive backup for PTRACK backups
2017-11-21 15:51:45 +03:00
Arthur Zakirov
1b9c8c943d
PGPRO-584: Add additional message for log file.
...
Message is added only during backup.
2017-11-15 19:21:30 +03:00
Arthur Zakirov
06aee9cbf6
Replace simple_prompt() by pgut_simple().
...
Properly handle Ctrl+C.
2017-11-15 15:27:48 +03:00
Arthur Zakirov
469e8f09dd
PGPRO-584: Fix logging options
...
Replace --log-level by --log-level-console and --log-level-file
2017-11-14 17:34:36 +03:00
Anastasia
e85e45938c
Do not backup files of the unlogged relations (only leave _init fork)
2017-11-13 18:52:09 +03:00
Arthur Zakirov
14e51105d4
Call on_cleanup() within on_interrupt() to correctly handle simple_prompt() interrupt
2017-11-13 12:45:42 +03:00
Grigory Smolkin
be5129dce9
fix password promt for pgut_connect_replication_extended
2017-11-10 18:45:51 +03:00
Anastasia
082612b528
Version 2.0.11.
...
- Fix password prompt interruption
- Check if the password provided by a user is empty
- Fix incremental backups: do not include into backup files, that didn't changed since previous backup.
- Add PG version into backup meta infromation
2017-11-10 17:40:30 +03:00
Anastasia
a40d0e3702
code cleanup for 22cb8c60aa
2017-11-10 14:13:44 +03:00
Arthur Zakirov
8f8e0ef1be
PGPRO-1059: Do not save empty server_version
2017-11-10 12:01:37 +03:00
Arthur Zakirov
d603694b81
PGPRO-1059: Add PG version into show output, save server_version in backup.control
2017-11-09 19:14:39 +03:00
Arthur Zakirov
25117a7edb
Revert "PGPRO-1059: Add PG version into show output"
...
This reverts commit a7826d085d
.
2017-11-09 18:24:31 +03:00
Arthur Zakirov
a7826d085d
PGPRO-1059: Add PG version into show output
2017-11-09 17:55:13 +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
b3ace0e871
Check if password provided by a user is empty
2017-11-02 14:35:31 +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
Arthur Zakirov
a4eb925763
Fix do_validate_instance() loop
2017-11-01 14:57:15 +03:00
Arthur Zakirov
f99e93185b
Properly clean PGresult
2017-11-01 12:47:28 +03:00
Grigory Smolkin
55e8608b30
fix pg_stop_backup waiting
2017-11-01 12:38:02 +03:00
Grigory Smolkin
43bd813cb5
replication connection fix
2017-11-01 12:37:57 +03:00
Grigory Smolkin
80244158cd
SIGINT for password promt
2017-11-01 12:37:49 +03:00
Arthur Zakirov
4c63a7e3e5
Fix posible infinite loop
2017-11-01 11:50:37 +03:00
Arthur Zakirov
50fe7c3783
Allocate password for simple_prompt() for Pg 10
2017-10-31 15:33:36 +03:00
Arthur Zakirov
688747f77c
Use proper loop in do_validate_instance() to look for a full backup
2017-10-31 15:07:13 +03:00
Anastasia
3a1d5c430f
Version 2.0.10
2017-10-30 15:02:56 +03:00
Grigory Smolkin
9f07c0ccc7
v 2.0.9
2017-10-26 16:04:15 +03:00
Grigory Smolkin
15b457de90
small cfs fixes
2017-10-23 10:21:39 +03:00
Arthur Zakirov
6d4c966187
Instead of palloc's use static strings
2017-10-20 12:40:45 +03:00
Grigory Smolkin
f0939cf33a
cfs backup
2017-10-19 13:33:31 +03:00
Arthur Zakirov
4123b76c16
Use POSIX constants for mode_t
2017-10-11 16:43:09 +03:00
Arthur Zakirov
57e7bc4d12
Check ptrack support properly
2017-10-11 16:10:25 +03:00
Anastasia
27a90e847d
Version 2.0.8. Stable
2017-10-10 19:10:59 +03:00
Anastasia
dcf516cdbd
check if ptrack_version == 1.3
2017-10-10 19:10:03 +03:00
Grigory Smolkin
6dc3c29616
Version 2.0.7
2017-10-09 15:35:46 +03:00
Grigory Smolkin
dcd85e96ed
Merge branch 'repprotocol_v1'
2017-10-09 15:29:42 +03:00
Arthur Zakirov
8eda9d444b
Fix output of show command
2017-10-06 11:51:57 +03:00
Arthur Zakirov
be71f4a8f9
PGPRO-1026: Store timestamps with timezone, parse timezone from timestamp
...
from config and command line parameters
2017-10-06 11:42:08 +03:00
Grigory Smolkin
6c2050f1d5
validate ptrack_lsn to InvalidXLogRecPtr
2017-10-05 12:19:36 +03:00
Grigory Smolkin
af99fe4daa
ptrack_enable fix
2017-10-05 12:03:42 +03:00
Anastasia
9813471e7b
Version 2.0.6
2017-10-04 12:24:53 +03:00