Advertisement
Guest User

sel_for_update

a guest
Jan 27th, 2017
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nailgun=> SELECT relation::regclass, * FROM pg_locks WHERE virtualtransaction='2/52';
  2.        relation       |   locktype    | database | relation | PAGE | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid |        mode         | granted | fastpath
  3. ----------------------+---------------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+-----+---------------------+---------+----------
  4.  nodes_mac_key        | relation      |   244167 |  1728505 |      |       |            |               |         |       |          | 2/52               | 906 | AccessShareLock     | t       | t
  5.  _hostname_cluster_uc | relation      |   244167 |  1727790 |      |       |            |               |         |       |          | 2/52               | 906 | AccessShareLock     | t       | t
  6.  nodes_uuid_key       | relation      |   244167 |  1726580 |      |       |            |               |         |       |          | 2/52               | 906 | AccessShareLock     | t       | t
  7.  nodes_pkey           | relation      |   244167 |  1726576 |      |       |            |               |         |       |          | 2/52               | 906 | AccessShareLock     | t       | t
  8.  nodes                | relation      |   244167 |  1726569 |      |       |            |               |         |       |          | 2/52               | 906 | RowShareLock        | t       | t
  9.                       | virtualxid    |          |          |      |       | 2/52       |               |         |       |          | 2/52               | 906 | ExclusiveLock       | t       | t
  10.  nodes                | tuple         |   244167 |  1726569 |    9 |     9 |            |               |         |       |          | 2/52               | 906 | AccessExclusiveLock | t       | f
  11.                       | transactionid |          |          |      |       |            |        210881 |         |       |          | 2/52               | 906 | ShareLock           | f       | f
  12. (8 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement