PostgreSQL locking, part 2: heavyweight locks