From: Tom Lane <tgl@sss.pgh.pa.us>
To: alexandre :: aldeia digital <alepaes@aldeiadigital.com.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: Outer Join with For Update
Date: Tue, 03 Sep 2002 17:31:19 -0400
Message-ID: <18071.1031088679@sss.pgh.pa.us> (raw)
In-Reply-To: <1507.200.225.214.1.1031076341.squirrel@webmail.aldeiadigital.com.br>
References: <1507.200.225.214.1.1031076341.squirrel@webmail.aldeiadigital.com.br>
"alexandre :: aldeia digital" <alepaes@aldeiadigital.com.br> writes:
> SELECT A.id, B.desc from A left join B ON B.id=A.id FOR UPDATE OF A,B
> If I have a null rellation in B, the error in postgres is:
> "SELECT FOR UPDATE cannot be applied to the nullable side of an OUTER JOIN"
Yup.
> DB2 simply ignore the FOR UPDATE ...
> I think that is the correct form...
That seems obviously wrong to me. What good is a FOR UPDATE if it fails
to lock down the rows that created your result?
regards, tom lane
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: tgl@sss.pgh.pa.us, alepaes@aldeiadigital.com.br
Subject: Re: Outer Join with For Update
In-Reply-To: <18071.1031088679@sss.pgh.pa.us>
* 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