Report waiting via PS while recovery is waiting for buffer pin in hot standby.
authorFujii Masao <fujii@postgresql.org>
Mon, 30 Mar 2020 08:35:03 +0000 (17:35 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 30 Mar 2020 08:35:03 +0000 (17:35 +0900)
commit64638ccba3a659d8b8a3a4bc5b47307685a64a8a
tree865d4983e174508abb721114e6f40d57c13db632
parent246f136e76ecd26844840f2b2057e2c87ec9868d
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
src/backend/storage/buffer/bufmgr.c