📜  postgres transactionid - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:36.689000             🧑  作者: Mango

代码示例1
x=# SELECT wait_event_type, state, query 
x-# FROM pg_stat_activity 
x-# WHERE pid = 476513;
 wait_event_type | state  |                              query                                                                                                                     
-----------------+--------+--------------------------------------------------------------------
 Lock            | active | INSERT INTO association (id, device, campaign) VALUES ($1, $2, $3)
(1 row)