]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Report missing wait event for timeline history file.
authorFujii Masao <fujii@postgresql.org>
Fri, 8 May 2020 01:36:40 +0000 (10:36 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 8 May 2020 01:38:01 +0000 (10:38 +0900)
commita354d015386a24bbe4cfcf21a983cf7a57ad89b1
tree846b83b9b0f9c546e1403b9e5e9117abf11181c0
parente1d70ba438a29dd03ba1ce77dcb54c0df9c4f904
Report missing wait event for timeline history file.

TimelineHistoryRead and TimelineHistoryWrite wait events are reported
during waiting for a read and write of a timeline history file, respectively.
However, previously, TimelineHistoryRead wait event was not reported
while readTimeLineHistory() was reading a timeline history file. Also
TimelineHistoryWrite was not reported while writeTimeLineHistory() was
writing one line with the details of the timeline split, at the end.
This commit fixes these issues.

Back-patch to v10 where wait events for a timeline history file was added.

Author: Masahiro Ikeda
Reviewed-by: Michael Paquier, Fujii Masao
Discussion: https://postgr.es/m/d11b0c910b63684424e06772eb844ab5@oss.nttdata.com
src/backend/access/transam/timeline.c