PostgreSQL V9.6 LWLock实现分析(三)


X-XX

Wait Event Type

Wait Event Name

Description

Lock[1]

relation

Waiting to acquire a lock on a relation.

extend

Waiting to extend a relation.

page

Waiting to acquire a lock on page of a relation.

tuple

Waiting to acquire a lock on a tuple.

transactionid

Waiting for a transaction to finish.

virtualxid

Waiting to acquire a virtual xid lock.

speculative token

Waiting to acquire a speculative insertion lock.

object

Waiting to acquire a lock on a non-relation database object.

userlock

Waiting to acquire a userlock.

advisory

Waiting to acquire an advisory user lock.

BufferPin[2]

BufferPin

Waiting to acquire a pin on a buffer.



[1] The backend is waiting for a heavyweight lock. Heavyweight locks, also known as lock manager locks or simply locks, primarily protect SQL-visible objects such as tables. However, they are also used to ensure mutual exclusion for certain internal operations such as relation extension. wait_event will identify the type of lock awaited.

[2] The server process is waiting to access to a data buffer during a period when no other process can be examining that buffer. Buffer pin waits can be protracted if another process holds an open cursor which last read data from the buffer in question

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值