1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-06-21 01:34:15 +02:00
Commit Graph

1691 Commits

Author SHA1 Message Date
Yura Sokolov d78283c31b Merge branch 'REL_2_6_rework_stat' into REL_2_6 2022-11-17 02:12:15 +03:00
Yura Sokolov 0e24b62a73 [PBCKP-345] more consistent use of int64_t for file sizes 2022-11-17 01:45:43 +03:00
Yura Sokolov e9055001ac [PBCKP-345] rework file stat handling to simplify and cross-platform-ability
- don't use full `struct stat` since it differs between platforms
- store file kind separately from mode in pb specific way
- add pioFilesAreSame as replacement of fio_is_same_file since it needs
  st_ino and st_dev, therefore had to run on localdrive always.
2022-11-17 01:45:33 +03:00
Yura Sokolov 2cc4ff1fea Merge branch 's3c_Makefile' into REL_2_6 2022-11-16 13:01:59 +03:00
Yura Sokolov af806800e9 Merge branch 'REL_2_6-PBCKP-314' into REL_2_6 2022-11-16 03:03:37 +03:00
Sergey Fukanchik d6815e0e9e [PBCKP-314] Failed directory creation is an error. 2022-11-15 16:37:01 +03:00
Yura Sokolov ef9ac6520a Merge branch 'REL_2_5' into REL_2_6 2022-11-15 15:09:30 +03:00
Sergey Fukanchik 19862d8b5e [PBCKP-314] Call FOBJ_FUNC_ARP() to initialize top-level autorelease pool. 2022-11-15 14:46:57 +03:00
Sergey Fukanchik 94370e4b5c [PBCKP-314] move err_i to the beginning of a function. 2022-11-15 13:53:56 +03:00
Yura Sokolov 348283b307 update version to 2.5.10 2022-11-15 13:43:09 +03:00
d.lepikhova 1eaf9d9008 Fix S3_write_config parameters 2022-11-15 15:39:29 +05:00
Sergey Fukanchik b8d6ab00dd [PBCKP-314] fio_mkdir has been replaced with pioMakeDir 2022-11-15 10:58:53 +03:00
Yura Sokolov 2da1f31d3c remove unused fio_gzeof and fio_gzwrite. 2022-11-14 23:37:41 +03:00
Yura Sokolov 4869a564d0 [PBCKP-336] Fix segno calculation.
It were lost during fork-name detection fix at eaf3b14c22 .
And since there were no basic test for this, it were not detected.
2022-11-14 13:04:09 +03:00
Yura Sokolov 5f419c38d6 remove_temp_wal_file: accept raw interface instead of pointer. 2022-11-10 15:44:09 +03:00
Yura Sokolov fed7014d46 rename pioFlush -> pioWriteFinish 2022-11-09 15:41:57 +03:00
Yura Sokolov 399b430a78 refactor: rename filter methods 2022-11-09 14:49:08 +03:00
Yura Sokolov cd388dc256 move pio klass definitions to file.c 2022-11-08 20:38:42 +03:00
Yura Sokolov ca9553dae2 don't redefine _(s) since we don't include libpq-int.h anymore 2022-11-08 02:59:06 +03:00
Yura Sokolov e78c61a9b2 Merge branch 'REL_2_6' into try-merge-2.6 2022-11-08 02:55:28 +03:00
Yura Sokolov 0bed194d10 Merge branch 'master' into try-merge-2.6 2022-11-07 23:09:42 +03:00
Yura Sokolov 46c782b012 Merge branch 'REL_2_5' before PBCKP-146 into try-merge-2.6 2022-11-07 19:48:47 +03:00
Sofia Kopikova f755d54300 Fix wrong ifdef 2022-11-07 15:08:51 +03:00
Yura Sokolov 7cadc3378c [PBCKP-146] fix filesize filling
file->size were not filled while reading backup filelist.
That lead to excess non-data file backups.
2022-11-03 11:51:40 +03:00
Yura Sokolov 693bffe08d [PBCKP-146] fix cfm truncated crc calculation in delta/page backup
- On backup we should compare truncated crc with previous version.
- copying remote file didn't honor "don't truncate first 64 bytes" rule.
- crc calculation didn't honoer "don't truncate first 64 bytes" rule.
2022-11-03 11:50:30 +03:00
Yura Sokolov 2f2d8790ac fix for forkname detection in get_backup_filelist 2022-11-03 03:58:06 +03:00
Yura Sokolov 5851068e2b fix set_forkname
Fork detection were broken before set_forkname extraction, and its bug
were copied into.

Lets reimplement it to be like `parse_filename_for_nonetemp_relation` in
PostgreSQL code.
2022-11-03 03:57:06 +03:00
Yura Sokolov 85708251bb fix for forkname detection in get_backup_filelist 2022-11-03 03:40:35 +03:00
Yura Sokolov eaf3b14c22 fix set_forkname
Fork detection were broken before set_forkname extraction, and its bug
were copied into.

Lets reimplement it to be like `parse_filename_for_nonetemp_relation` in
PostgreSQL code.
2022-11-03 03:40:35 +03:00
Yura Sokolov 53a3e1bb55 stub for s3 integration 2022-11-02 23:56:57 +03:00
Daniel Shelepanov 4ecb11f45d [PBCKP-234] proper pioListDir usage
tags: pb_probackup
2022-11-02 23:53:16 +03:00
Yura Sokolov 0c7c78b8e8 Merge branch 'REL_2_5-PBCKP-146-2' into REL_2_5 2022-11-02 22:32:09 +03:00
Yura Sokolov 34af0255cd Merge branch 'master' into REL_2_5 2022-11-02 17:24:03 +03:00
Victor Spirin feacabd8ab [PBCKP-308] Changed check_server_version function for postgresql version for 1c. 2022-11-02 14:25:12 +03:00
Ivan Lazarev ba6b240965 hotfix-2 for C89 compatibility from branch 'REL_2_5-PBCKP-236' into REL_2_5 2022-11-01 14:41:42 +03:00
Ivan Lazarev 64b84d0ca6 [PBCKP-236] hotfix-2 for C89 compatibility 2022-11-01 14:41:02 +03:00
Yura Sokolov e36924a0fd [PBCKP-146] review fixes 2022-11-01 12:53:46 +03:00
Ivan Lazarev d9f798eedb Merge C89 hotfix from branch 'REL_2_5-PBCKP-236' into REL_2_5 2022-11-01 12:10:38 +03:00
Ivan Lazarev 0b474d2616 [PBCKP-236] hotfix for C89 2022-11-01 11:53:17 +03:00
Ivan Lazarev 10a5b46369 Merge pull request #554 from postgrespro/REL_2_5-PBCKP-236
[PBCKP-236] added ssh agent full path to log output, merge to REL_2_5 from REL_2_5-PBCKP-236
2022-10-31 23:32:17 +03:00
Sofia Kopikova 0b8cf419c3 [PBCKP-120] skip partitioned indexes for checkdb --amcheck
Tags: pg_probackup
2022-10-29 01:22:52 +03:00
MetalDream666 79009c652c Revert "[PBCKP-120] skip partitioned indexes for checkdb --amcheck" 2022-10-29 01:17:13 +03:00
MetalDream666 dfb8b1f316 Merge pull request #498 from postgrespro/PBCKP-120
[PBCKP-120] skip partitioned indexes for checkdb --amcheck
2022-10-29 01:13:10 +03:00
Ivan Lazarev 1a48b6c595 [PBCKP-236] added remote shh agent path to log output 2022-10-28 19:40:15 +03:00
Ivan Lazarev f2df286677 Merge pull request #531 from postgrespro/REL_2_5-PBCKP-236
[PBCKP-236] merge into REL_2_5
2022-10-27 17:10:12 +03:00
dlepikhova 97355f1562 release_2_5_9-pbckp-227 (#533)
[PBCKP-227]: Fix some potential problems in pg_probackup code
* Fix fwrite parameters in fio_open_stream
* Remove unused get_system_dbstate function
* Set actual sourse for fields in instance_options to SOURCE_DEFAULT
* Remove get_system_dbstate declaration from header file
2022-10-26 18:34:36 +05:00
Yura Sokolov 302db1c49f [PGPRO-146] store at least cfs header size bytes. 2022-10-24 20:35:29 +03:00
Yura Sokolov 5f71f7710f fix fio_send_file_local 2022-10-24 17:28:07 +03:00
Yura Sokolov 202f2ade7f find_zero_tail: fix last bytes check 2022-10-24 17:16:14 +03:00
Yura Sokolov b568f2254a [PBCKP-146] truncate cfm files
- store cfm files truncated to non-zero head with coarse granularity
  (64-4096 bytes)
- and calculate crc for truncated file
- during restoration calculate crc for cfm as if it was truncated
2022-10-20 19:58:54 +03:00