pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: pgsql-sql@postgresql.org
Subject: SELECT MAX(c) FROM (SELECT ... FOR UPDATE) AS foo
Date: Tue, 17 Aug 2004 13:07:43 +0200
Message-ID: <1092740863.2627.17.camel@dicaprio.akademie1.de> (raw)

Hi,

why is the following query not allowed:

SELECT MAX(position) FROM (SELECT position FROM classes WHERE name =
'foo' FOR UPDATE OF classes) AS foo

It's clear which rows should be locked here, I think.

Thanks

-- 
Markus Bertheau <twanger@bluetwanger.de>




view thread (8+ messages)  latest in thread

Message-ID: <1092740863.2627.17.camel@dicaprio.akademie1.de>
Permalink:  ../1092740863.2627.17.camel@dicaprio.akademie1.de/
Also on:    postgresql.org/message-id/1092740863.2627.17.camel@dicaprio.akademie1.de

 · 

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: twanger@bluetwanger.de
  Subject: Re: SELECT MAX(c) FROM (SELECT ... FOR UPDATE) AS foo
  In-Reply-To: <1092740863.2627.17.camel@dicaprio.akademie1.de>

* 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