Re: concurrent SELECT blocking ALTER? - Mailing list pgsql-general

From Jeff Janes
Subject Re: concurrent SELECT blocking ALTER?
Date
Msg-id CAMkU=1z5AusWf9d62w7ohEqT+RPWUmGEgaPGYPeA56R71X27jw@mail.gmail.com
Whole thread Raw
In response to Re: concurrent SELECT blocking ALTER?  (Neil Harkins <nharkins@gmail.com>)
List pgsql-general
On Wed, Jan 29, 2014 at 3:09 PM, Neil Harkins <nharkins@gmail.com> wrote:
Note the number of exclusive locks in my first message, it is equal to the number of threads (20). Also, the ALTER was not running then, apologies if that was not clear.

Not all locks are on tables.  Each transaction holds an Exclusive lock on its own virtual transaction id, and that is what you are seeing there. Looking the pg_locks table without looking at the nature of the locks is generally not very useful.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Neil Harkins
Date:
Subject: Re: concurrent SELECT blocking ALTER?
Next
From: Kevin Grittner
Date:
Subject: Re: Re: PostgreSQL specific datatypes very confusing for beginners who use wrappers around JDBC