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
Anastasia
c237774d4d
exclude pg_internal.init from backup
2017-10-03 19:19:38 +03:00
Anastasia
25b7a706ba
small fixes
2017-10-03 17:57:48 +03:00
Anastasia
990ab6050d
Version 2.0.5
2017-10-03 15:57:15 +03:00
Anastasia
fd2019b85a
fix incorrect pg_ptrack_clean() call
2017-10-02 21:05:24 +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
a8f2b432ce
fix template0 backup. Always copy all files of this database
2017-10-01 18:28:39 +03:00
Anastasia
3246875486
code refactoring and fixes for ptrack backup. TODO cleanup debug messages
2017-09-29 20:25:11 +03:00
Anastasia
64939fd328
backup via repprotocol v1. WIP
2017-09-28 17:40:24 +03:00
Anastasia
e47b02018b
code cleanup. add more comments
2017-09-28 15:12:12 +03:00
Anastasia
43efdd3da7
code cleanup
2017-09-28 14:39:21 +03:00
Anastasia
04105e8f07
Version 2.0.4
2017-09-28 13:10:03 +03:00
Anastasia
7993488b92
fix ptrack_get_and_clear() for files in pg_global tablespace
2017-09-28 12:42:43 +03:00
Anastasia
1befa474aa
fix redundant check in page validation
2017-09-28 12:42:19 +03:00
Anastasia
765524854c
do not call calc_checksum for non regular files. add an Assert
2017-09-26 20:13:23 +03:00
Anastasia
a5e8a54d82
do not throw an error if database is not found while performing ptrack backup
2017-09-01 14:59:44 +03:00
Anastasia
a42add54a1
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2017-09-01 11:52:04 +03:00
Anastasia
25762c2830
add check for interrupt in prompt for password
2017-09-01 11:51:49 +03:00
Arthur Zakirov
b1d81c7248
Issue #18 . Make compiler quiet.
2017-09-01 10:57:19 +03:00
Arthur Zakirov
578abf5f40
Version 2.0.3
2017-08-31 21:32:15 +03:00
Arthur Zakirov
36ac5d22cd
Do not check config->pgdata in do_archive_push().
...
We already checked system_identifier.
2017-08-24 12:03:20 +03:00
Arthur Zakirov
0887650a3e
Fix logging messages to a stderr
2017-08-22 10:59:38 +03:00
Arthur Zakirov
c21fa15b64
Fix help for --log parameter
2017-08-21 17:08:06 +03:00
Arthur Zakirov
c3c301cdef
Initialize stop_socket of StreamCtl struct
2017-08-21 16:36:25 +03:00
Arthur Zakirov
e2ab82fb49
Fix longopts_to_optstring(): use proper length of opts array
2017-08-15 13:18:14 +03:00
Arthur Zakirov
edfad8c496
Use nonprintable characters for options without a short name
2017-08-14 17:30:25 +03:00
Arthur Zakirov
6037abce53
Check archive_command with archive_mode. Do not set dbname for stream connection.
2017-08-14 14:45:59 +03:00
Arthur Zakirov
9b784015db
Version 2.0.2
2017-08-11 19:05:36 +03:00
Arthur Zakirov
5ecf9851c9
Use pg_last_wal_replay_lsn and pg_last_wal_receive_lsn for PostgreSQL 10
2017-08-11 18:53:57 +03:00
Arthur Zakirov
bea0469d21
Merge with pgpro-727
2017-08-11 18:46:31 +03:00
Arthur Zakirov
53e4f52033
Merge remote-tracking branch 'origin/pgpro-820'
2017-08-11 18:44:04 +03:00
Arthur Zakirov
e02e09f40b
Fix writing to error_log_file without log_file
2017-08-10 16:56:16 +03:00
Arthur Zakirov
7bd80376bd
pg_probackup now is built with PostgreSQL 10
2017-08-07 16:23:37 +03:00
Arthur Zakirov
257dd3a2a4
Call pg_switch_wal() for PAGE backup after pg_start_backup()
2017-07-13 16:16:05 +03:00
Arthur Zakirov
7666b597d7
Do not check LSN in wait_wal_lsn for previous segment
2017-07-13 13:37:44 +03:00
Arthur Zakirov
c919c58b5e
Wait previous segment for start_lsn
2017-07-13 09:39:00 +03:00
Arthur Zakirov
a5667d3907
Remove pg_switch_wal()
2017-07-12 17:25:39 +03:00
Arthur Zakirov
d6166f0785
Wait for LSN to be replayed after waiting LSN to be archived
2017-07-12 15:33:21 +03:00
Arthur Zakirov
45fc4c32cc
Use wait_replica_wal_lsn() in pg_start_backup() and pg_stop_backup()
2017-07-12 15:31:51 +03:00
Arthur Zakirov
a0c7fcdc67
Added wait_replica_wal_lsn() function
2017-07-12 15:31:51 +03:00
Arthur Zakirov
0084441818
Do not check argc for SHOW_CONFIG and SET_CONFIG
2017-07-12 15:31:22 +03:00
Arthur Zakirov
a104e2c970
Call pg_switch_wal() on replica after pg_create_restore_point() during pg_stop_backup()
2017-07-11 13:29:43 +03:00
Arthur Zakirov
9709678473
Fix using uninitialized backup_files_list
2017-07-11 13:18:23 +03:00
Arthur Zakirov
311b7b1934
Added --log parameter, each log entry has timestamp value now
2017-07-10 10:55:40 +03:00
Arthur Zakirov
a8ea8ab5a5
Fix for 3e8ac2896d
, improve error messages.
...
We need call fflush() for buffered IO. Without fflush() fsync() could be useless.
2017-07-06 22:59:47 +03:00
Anastasia
9f91dfc5bb
Bunch of small fixes. Version 2.0.1
2017-07-05 17:36:22 +03:00
Anastasia
be95e17fac
Version 2.0
2017-07-03 18:09:24 +03:00
Anastasia
385798e753
add --compress shortcut option
2017-07-03 18:06:39 +03:00
Anastasia
03dfb7bc59
minor fix
2017-07-03 17:43:32 +03:00
Anastasia
393afa55e7
fix
2017-07-03 17:22:28 +03:00
Anastasia
6b4c90a25e
check file existence in archive-push
2017-07-03 16:15:46 +03:00
Arthur Zakirov
70ff5aaa27
fsync() backup_label, tablespace_map, recovery.conf
2017-06-27 15:41:04 +03:00
Arthur Zakirov
3e8ac2896d
fsync() data and WAL files
2017-06-27 15:24:53 +03:00
Anastasia
9c7eae6753
fix exit code
2017-06-26 16:47:24 +03:00
Anastasia
4b58d2e52b
fix validate to target in the future
2017-06-26 13:17:12 +03:00
Anastasia
e0596efd85
Version 1.1.17
2017-06-20 17:54:15 +03:00
Anastasia
fd46947329
fix Makefile. TODO fix relative path
2017-06-20 14:12:16 +03:00
Anastasia
5e034a4acc
move sources to src/ subdir, update copyright
2017-06-20 12:37:10 +03:00