aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/encode.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-04-08 00:49:29 +0900
committerFujii Masao <fujii@postgresql.org>2020-04-08 00:49:29 +0900
commit4bd0ad9e44be9fbc3ad77747d7672dab1c3df7d9 (patch)
treebe32b23e5c88cb7f3d69107d47b7075cfc150d30 /src/backend/utils/adt/encode.c
parentba3e76cc571eba3dea19c9465ff15ac3ac186576 (diff)
downloadpostgresql-4bd0ad9e44be9fbc3ad77747d7672dab1c3df7d9.tar.gz
postgresql-4bd0ad9e44be9fbc3ad77747d7672dab1c3df7d9.zip
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. 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
Diffstat (limited to 'src/backend/utils/adt/encode.c')
0 files changed, 0 insertions, 0 deletions