1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/src/command
David Steele a8fb285756
Improve archive-get performance.
Check that archive files exist in the main process instead of the local process. This means that the archive.info file only needs to be loaded once per execution rather than once per file to get.

Stop looking when a file is missing or in error. PostgreSQL will never request anything past the missing file so there is no point in getting them. This also reduces "unable to find" logging in the async process.

Cache results of storageList() when looking for multiple files to reduce storage I/O.

Look for all requested archive files in the archive-id where the first file is found. They may not all be there, but this reduces the number of list calls. If subsequent files are in another archive id they will be found on the next archive-get call.
2021-01-15 10:15:52 -05:00
..
archive Improve archive-get performance. 2021-01-15 10:15:52 -05:00
backup Add FUNCTION_LOG_RETURN_STRUCT() and update where appropriate. 2021-01-13 07:49:47 -05:00
check Replace double type with time in config module. 2020-12-09 08:59:51 -05:00
control Allow multiple remote locks from the same main process. 2020-11-23 12:41:54 -05:00
expire Expire history files. 2020-10-16 07:42:03 -04:00
help Add job-retry and job-retry-interval options. 2021-01-11 15:15:25 -05:00
info Remove non-conforming periods and reformat some comments. 2021-01-14 10:39:25 -05:00
local Add job-retry and job-retry-interval options. 2021-01-11 15:15:25 -05:00
remote Replace double type with time in config module. 2020-12-09 08:59:51 -05:00
repo Replace double type with time in config module. 2020-12-09 08:59:51 -05:00
restore Add job-retry and job-retry-interval options. 2021-01-11 15:15:25 -05:00
stanza Use zero-based indexes when referring to option indexes. 2020-10-26 10:25:16 -04:00
verify Add FUNCTION_LOG_RETURN_STRUCT() and update where appropriate. 2021-01-13 07:49:47 -05:00
command.c Allow option validity to be determined by command role. 2020-12-28 09:43:23 -05:00
command.h Remove unused parameter from cmdBegin(). 2020-08-20 14:16:36 -04:00