pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wayne Cuddy <lists-pgsql@useunix.net>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: locks and "select for update"
Date: Fri, 31 Aug 2012 13:05:54 -0400
Message-ID: <20120831170554.GA32084@slacker.ja10629.home> (raw)

The documentation about concurrency states that all the different types
of locks are table locks even if the word row appears in the lock name.

The documentation about select statements states that when "for update
of" is used that only the selected rows will be locked. Is this true or
does this really mean that when any target row is found the entire table
is locked until the end of the transaction?

Thanks,
Wayne




view thread (2+ messages)  latest in thread

Message-ID: <20120831170554.GA32084@slacker.ja10629.home>
Permalink:  ../20120831170554.GA32084@slacker.ja10629.home/
Also on:    postgresql.org/message-id/20120831170554.GA32084@slacker.ja10629.home

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lists-pgsql@useunix.net
  Subject: Re: locks and "select for update"
  In-Reply-To: <20120831170554.GA32084@slacker.ja10629.home>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox