title: Will selecting from pg_locks always return a result for itself?
body: <p><code>SELECT relation::regclass, * FROM pg_locks ;</code></p>
  
  <p>Results in the following:</p>
  
  <pre><code> relation |  locktype  | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid  |      mode       | granted | fastpath 
   ----------+------------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+------+-----------------+---------+----------
   pg_locks | relation   |    16397 |    11187 |      |       |            |               |         |       |          | 76/111628          | 2652 | AccessShareLock | t       | t
        | virtualxid |          |          |      |       | 76/111628  |               |         |       |          | 76/111628          | 2652 | ExclusiveLock   | t       | t
   (2 rows)
  </code></pre>
  
  <p>Can I assume that my query of <code>pg_locks</code> is itself what is causing the <code>ExclusiveLock</code> in that result?</p>