Search Postgresql Archives

Seeing locks (was Status of gist locking in 8.1.3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris writes:

SELECT * from pg_locks ;
And this is per DB right?
No, this is per system.

On a DB doing no/little work I always see two records returned. One has a value in the 'database' column. How can I find what database it is?

Looking for it in pg_database did not yield any databases with a matching number. The number in the 'database' column did not match any number of the columns in pg_database.

The two records I always see are:
  locktype    |....|      mode       | granted
---------------+....+-----------------+---------
transactionid |....| ExclusiveLock   | t
relation      |....| AccessShareLock | t




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux