PostgreSQL: heavyweight locks by Alvaro Herrera - #pgbr2011