Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 160709FB367 for ; Fri, 6 Oct 2006 13:02:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79790-03-2 for ; Fri, 6 Oct 2006 13:02:08 -0300 (ADT) X-Greylist: delayed 00:29:04.861548 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5B47E9FB45B for ; Fri, 6 Oct 2006 13:00:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.socialserve.com (office.socialserve.com [208.60.89.34]) by svr4.postgresql.org (Postfix) with ESMTP id E6A6D5AF03B for ; Fri, 6 Oct 2006 15:31:51 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.socialserve.com (Postfix) with ESMTP id 49AB0396CB7 for ; Fri, 6 Oct 2006 11:31:45 -0400 (EDT) X-Virus-Scanned: by amavisd-new at socialserve.com Received: from mail.socialserve.com ([127.0.0.1]) by localhost (ms3.socialserve.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QhOyZw1yPXRw for ; Fri, 6 Oct 2006 11:31:42 -0400 (EDT) Received: from [10.1.1.43] (jlrobins.socialserve.com [10.1.1.43]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.socialserve.com (Postfix) with ESMTP id A1034396CB6 for ; Fri, 6 Oct 2006 11:31:42 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: pgsql-sql@postgresql.org From: James Robinson 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 X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/80 X-Sequence-Number: 26469 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