Re: How to troubleshoot a halted postgres 8.3 ? - Mailing list pgsql-admin

From stefan
Subject Re: How to troubleshoot a halted postgres 8.3 ?
Date
Msg-id E28B87DDBA121F45B476C053B2171F0E596BE6@mail.intermediate.de
Whole thread Raw
In response to How to troubleshoot a halted postgres 8.3 ?  ("stefan" <stefan@intermediate.de>)
Responses Re: How to troubleshoot a halted postgres 8.3 ?
List pgsql-admin
Hi Scott,

>   Remember, alter table statements require a full table lock.  So if that
> transaction (including your update statements) doesn't end somehow (commit,
> rollback) then all other connections looking at that table will wait.

>   Look at the pg_stat_activity and pg_locks views.

Thanks, you were right, I added an additional commit which solved the problem. The hint was that the pg_lock view
containeda lock entry which said granted "No". 

This raises though the question of isolation level, afaik postgres default is committed read. The doc says that another
querywould see the data as it was before the start of the transaction, which in my case would have been fine since the
additionalcolumns created by the alter statement were not used in the select which blocked. 
Is this some kind of "simple" implementation of a committed read ?

Thanks,

Stefan

pgsql-admin by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: WAL file compatibility
Next
From: "Hans Guijt"
Date:
Subject: Range-based clustering?