pgsql: Prevent archive recovery from scanning non-existent WAL files.

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgsql: Prevent archive recovery from scanning non-existent WAL files.
Дата
Msg-id E1jXG5c-0004ac-9M@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Prevent archive recovery from scanning non-existent WAL files.

Previously when there were multiple timelines listed in the history file
of the recovery target timeline, archive recovery searched all of them,
starting from the newest timeline to the oldest one, to find the segment
to read. That is, archive recovery had to continuously fail scanning
the segment until it reached the timeline that the segment belonged to.
These scans for non-existent segment could be harmful on the recovery
performance especially when archival area was located on the remote
storage and each scan could take a long time.

To address the issue, this commit changes archive recovery so that
it skips scanning the timeline that the segment to read doesn't belong to.

Per discussion, back-patch to all supported versions.

Author: Kyotaro Horiguchi, tweaked a bit by Fujii Masao
Reviewed-by: David Steele, Pavel Suderevsky, Grigory Smolkin
Discussion: https://postgr.es/m/16159-f5a34a3a04dc67e0@postgresql.org
Discussion: https://postgr.es/m/20200129.120222.1476610231001551715.horikyota.ntt@gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/660f1fc40d7a09e9486284d0858168703b9adf11

Modified Files
--------------
src/backend/access/transam/xlog.c | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Prevent archive recovery from scanning non-existent WAL files.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Prevent archive recovery from scanning non-existent WAL files.