|From:||Amit Kapila <akapila(at)postgresql(dot)org>|
|Subject:||pgsql: Add assert to ensure that page locks don't participate in deadlo|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Add assert to ensure that page locks don't participate in deadlock cycle.
Assert that we don't acquire any other heavyweight lock while holding the
page lock except for relation extension. However, these locks are never
taken in reverse order which implies that page locks will never
participate in the deadlock cycle.
Similar to relation extension, page locks are also held for a short
duration, so imposing such a restriction won't hurt.
Author: Dilip Kumar, with few changes by Amit Kapila
Reviewed-by: Amit Kapila, Kuntal Ghosh and Sawada Masahiko
src/backend/storage/lmgr/lock.c | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
|Next Message||Fujii Masao||2020-03-19 06:33:28||pgsql: Rename the recovery-related wait events.|
|Previous Message||Michael Paquier||2020-03-19 02:26:17||Re: pgsql: walreceiver uses a temporary replication slot by default|