Report waiting via PS while recovery is waiting for buffer pin in hot standby.

Fujii Masao <fujii@postgresql.org>

Commit: 64638ccba3a659d8b8a3a4bc5b47307685a64a8a
Author: Fujii Masao <fujii@postgresql.org>
Date: 2020-03-30T08:35:03Z
Releases: 13.0
Report waiting via PS while recovery is waiting for buffer pin in hot standby.

Previously while the startup process was waiting for the recovery conflict
with snapshot, tablespace or lock to be resolved, waiting was reported in
PS display, but not in the case of recovery conflict with buffer pin.
This commit makes the startup process in hot standby report waiting via PS
while waiting for the conflicts with other backends holding buffer pins to
be resolved.

Author: Masahiko Sawada
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CA+fd4k4mXWTwfQLS3RPwGr4xnfAEs1ysFfgYHvmmoUgv6Zxvmg@mail.gmail.com

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +23 −0

Discussion