pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Tiikkaja <marko@joh.to>
To: xrg@linux.gr
To: pgsql-docs@postgresql.org
Subject: Re: Row locking within a SELECT statement
Date: Tue, 16 Aug 2016 11:23:59 +0200
Message-ID: <c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to> (raw)
In-Reply-To: <20160816061952.30234.45751@wrigleys.postgresql.org>
References: <20160816061952.30234.45751@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

On 2016-08-16 08:19, xrg@linux.gr wrote:
> In order to avoid concurrent manipulation of rows, I do issue a &quot;SELECT ..
> FOR UPDATE&quot; on the sets of rows, before UPDATEing them (because UPDATEs
> cannot be ordered).

Yeah, but FOR UPDATEs are not ordered either unless you use ORDER BY, 
which you didn't.


.m


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (4+ messages)  latest in thread

Message-ID: <c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to>
Permalink:  ../c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to/
Also on:    postgresql.org/message-id/c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-docs@postgresql.org
  Cc: marko@joh.to, xrg@linux.gr
  Subject: Re: Row locking within a SELECT statement
  In-Reply-To: <c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to>
  References: <20160816061952.30234.45751@wrigleys.postgresql.org> <c0e51a2d-b3a1-dc0f-9307-51c054a7a334@joh.to>

* 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