Search Postgresql Archives

Re: Deadlock in Postgres 8.2

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

 



On Sun, 20 Jan 2008, Sebastjan Trepca wrote:

we are spotting constant deadlocks when altering tables.

See http://www.postgresql.org/docs/8.2/interactive/explicit-locking.html for information about the ACCESS EXCLUSIVE lock that ALTER TABLE takes. Anything that is doing that needs to be in as short of a transaction as possible, and it sounds like you have transactions that are lingering around for way too long. http://www.postgresql.org/docs/current/static/tutorial-transactions.html is an intro to transaction timing.

You can look at who has locks on what using pg_locks, see http://www.postgresql.org/docs/8.2/static/view-pg-locks.html

--
* Greg Smith gsmith@xxxxxxxxxxxxx http://www.gregsmith.com Baltimore, MD

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not
      match

[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