From: James Robinson <jlrobins@socialserve.com>
To: pgsql-sql@postgresql.org
Subject: SELECT FOR UPDATE/SHARE cannot be applied to the nullable side of an outer join
Date: Fri, 6 Oct 2006 11:31:47 -0400
Message-ID: <B15DF97D-188F-4FD1-99B6-BCEB7E0C3E99@socialserve.com> (raw)
Given something like:
create table foo (id int primary key not null);
create table bar (id int primary key not null, a_id int references
foo(id));
select a.id, b.id from foo a left outer join bar b on (b.a_id =
a.id) for update;
PG 8.1.4 balks, saying:
SELECT FOR UPDATE/SHARE cannot be applied to the nullable side of an
outer join
Is this behavior spec-mandated, or could only the rows in B which are
not-null be locked?
----
James Robinson
Socialserve.com
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: jlrobins@socialserve.com
Subject: Re: SELECT FOR UPDATE/SHARE cannot be applied to the nullable side of an outer join
In-Reply-To: <B15DF97D-188F-4FD1-99B6-BCEB7E0C3E99@socialserve.com>
* 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