Yura Sokolov
1b48745da1
Some pioDrive refactoring [PBCKP-319][PBCKP-384]
...
- started with changing `do_set_config` to use pioWriteFile
- to do this I wanted to pass drive to `do_set_config`
- this lead me to addition:
- `backup_location` to CatalogState
- `backup_location` and `database_location` to `InstanceState`
- removing `database_location` from `pgBackup` because it could be get
from `InstanceState` (perhaps it is wrong)
- so I wanted to pass drive to `pgBackupInit`, through
`read_backup`->`readBackupControlFile`
- since there was `config_read_opt`, I wanted to pass drive into as well
- and I had to split `config_read_opt` into `config_parse_opt` to unbind it
from "file.h"
- after all I found `do_set_config` doesn't need `missing_ok` argument
since `SET_CONFIG_CMD` reads config with `config_read_opt(missing_ok=false)`
- and btw changed `setMyLocation` to be more readable
- and factored out creation of InstanceState
2022-12-06 02:01:36 +03:00
Yura Sokolov
bef73b8ba6
more usages for table_checksum
2022-12-06 01:59:14 +03:00
Yura Sokolov
6bd71d866d
[PBCKP-382] and another one Pg15 pg_backup_stop()
2022-12-06 01:51:22 +03:00
Yuriy Sokolov
f032861577
Merge branch 'PBCKP-382-bug_15_compat' into 'REL_2_5'
...
[PBCKP-382] version 15 compatibility bug
See merge request eepbk/pg_probackup_ee!13
2022-12-06 01:50:00 +03:00
Yura Sokolov
aa074cad26
ignore lock_file absense in release_shared_lock_file
...
It were ignored until f6e7be6d . Lets put that nuance back.
TODO: should find why we call `release_shared_lock_file` without lock held.
2022-12-05 20:32:04 +03:00
Yura Sokolov
3109634ecb
[PBCKP-325] change test_issue_231 to check backup id are different
2022-12-05 15:49:12 +03:00
Yuriy Sokolov
573a0a9732
Merge branch 'REL_2_6-PBCKP-350' into 'REL_2_6'
...
[PBCKP-350] make pio_line_reader and use it in get_backup_filelist
See merge request eepbk/pg_probackup_ee!12
2022-12-05 14:12:57 +03:00
Yuriy Sokolov
6937adf29c
[PBCKP-350] make pio_line_reader and use it in get_backup_filelist
2022-12-05 14:12:57 +03:00
Sergey Fukanchik
ce297c3fa5
PBCKP-351 use new error message format in control test.
2022-12-05 13:10:42 +03:00
Daniel Shelepanov
c42f68ecca
[PBCKP-382] version 15 compatibility bug
2022-12-05 11:21:19 +03:00
Yura Sokolov
ce4335c9b8
Merge branch 'REL_2_5' into REL_2_6
2022-12-04 14:19:01 +03:00
Yura Sokolov
0f7e01b7f3
try travis without docker
2022-12-04 14:16:02 +03:00
Yura Sokolov
f2f47f7734
get rid of plpython usage
2022-12-04 05:33:52 +03:00
Yura Sokolov
fc50cf0ddf
tests: fix
...
travis uses old image with python3.5
2022-12-04 04:24:55 +03:00
Yura Sokolov
042f172eab
temporary disable windows build on REL_2_6 (try to)
2022-12-04 04:21:38 +03:00
Yura Sokolov
cdd5b5263f
Merge branch 'REL_2_5' into REL_2_6
2022-12-04 04:17:28 +03:00
Yura Sokolov
02e3fb0477
tests: table_checksum needs no sorting in fact
...
since we are compare table content exactly
2022-12-04 04:15:55 +03:00
Yura Sokolov
8d8a92c1d1
tests: more usages for table_checksum
...
and reduce batch twice for sanity
2022-12-02 16:56:54 +03:00
Yura Sokolov
9bcefb2569
[PBCKP-327] test_ptrack_multiple_segments: try to avoid memory consumption
2022-12-02 15:10:22 +03:00
Yura Sokolov
ae4b3ba899
make ft_malloc/free to be functions instead of macros
2022-12-02 12:54:32 +03:00
Yura Sokolov
2d084aaf72
ft: dealloc message in fobjErr_fobjDispose
2022-12-02 12:54:02 +03:00
Yura Sokolov
b239823c29
[PBCKP-374] pioLocalDrive_pioWriteFile - use temporary file and rename
...
to reduce calls to fio_rename/pioRename
plus remove forgotten fio_open
2022-12-02 11:42:43 +03:00
Yura Sokolov
fb8441a9b0
externalize couple of functions
2022-12-02 09:42:35 +03:00
d.lepikhova
b288fec839
[PBCKP-372]: Rewriting write_backup_filelist using pio and ft_strbuf_t
2022-12-01 18:34:47 +05:00
Alexander Burtsev and GitHub
744c2858e9
Merge pull request #578 from postgrespro/REL-2_5_PBCKP-320
...
[DOC] {PBCKP-320] Remove duplicate descriptions of backup/catchup mod…
2022-12-01 15:11:36 +03:00
Sergey Fukanchik and Yura Sokolov
fe75cdbf93
PBCKP-367 pio is inside of config_read_opt. fio_access is replaced with missing_ok=false
2022-12-01 13:21:02 +03:00
Yura Sokolov
d5ef113a83
[PBCKP-351] add new way to parse config options
...
It is prerequisite for killing fio_open_stream in get_backup_list.
2022-12-01 13:01:24 +03:00
Yura Sokolov
44ff1630e2
[PBCKP-349] use pioReadFile in read_tablespace_map
2022-12-01 10:29:44 +03:00
Yura Sokolov
a9b72d86a0
ft_cstrdupn
2022-12-01 06:54:27 +03:00
Yura Sokolov
abacfb23cf
ft_strbuf_t overflowed
2022-12-01 06:45:08 +03:00
Yura Sokolov
7e8f64ab4c
Merge branch 'REL_2_5' into REL_2_6
2022-11-30 21:50:33 +03:00
Yura Sokolov
619816012a
fix ArchiveTest.test_pgpro434_4 for Pg15
2022-11-30 21:50:20 +03:00
Yura Sokolov
d50b0e20b4
a bit of improvement to pioCopy/pioReadFull
...
and $iresult
2022-11-30 21:46:28 +03:00
Yura Sokolov
c7f153bae0
Merge branch 'REL_2_5' into REL_2_6
2022-11-30 16:36:04 +03:00
Yura Sokolov
8fa063f688
travis: and backup_test
2022-11-30 16:34:00 +03:00
Elena Indrupskaya
7e59a19df1
[DOC] {PBCKP-320] Remove duplicate descriptions of backup/catchup modes [skip-travis]
2022-11-30 15:56:41 +03:00
Yura Sokolov
154a7cb939
Merge branch 'REL_2_6-PBCKP-279' into REL_2_6
2022-11-30 14:59:19 +03:00
Yura Sokolov
c7d88f978e
Merge branch 'REL_2_5' into REL_2_6
2022-11-30 14:59:03 +03:00
Yura Sokolov
3b2efe63a2
and again try fix travis tests.init_test
2022-11-30 14:58:36 +03:00
Yura Sokolov
aa59169db1
Merge branch 'REL_2_5' into REL_2_6
2022-11-30 08:08:35 +03:00
Yura Sokolov
6a684d89b5
...
2022-11-30 08:07:44 +03:00
Yura Sokolov
1cd1355361
configuration.c: rework parse_pair and config_read_opt
2022-11-30 08:07:31 +03:00
Yura Sokolov
b92d814ae9
Merge branch 'REL_2_6-PBCKP-337' into REL_2_6
2022-11-30 05:15:27 +03:00
Yura Sokolov
e2dd78a99e
Merge branch 'REL_2_5-PBCKP-360' into REL_2_5
2022-11-29 20:17:46 +03:00
Victor Spirin and Yura Sokolov
a21b4c0486
[PBCKP-279] Removed basebackup sources dependency.
2022-11-29 16:46:46 +03:00
Yura Sokolov
dee680e6b6
Merge branch 'REL_2_5' into REL_2_6
2022-11-29 16:37:12 +03:00
Victor Spirin
1dc4033476
Added include catalog/catalog.h to file.c for PG10
2022-11-29 16:36:35 +03:00
Yura Sokolov
3b72dd66af
fix github tests.init_test
2022-11-29 16:24:49 +03:00
Sergey Fukanchik
f12ff418d7
PBCKP-337 switch to pio in config_read_opt
2022-11-29 15:21:04 +03:00
Yura Sokolov
0a5fc87dbd
[PBCKP-360] fix exception check in test_validate_corrupt_page_header_map
...
zlib decompression could mark error either as "data error" or
"buffer error". One of check did consider it, other didn't.
Make them same.
And use `assertRaises` for good (requires python 3.2 at least)
2022-11-29 15:13:34 +03:00