Re: FOR UPDATE versus WITH --- change 8.4 too?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: FOR UPDATE versus WITH --- change 8.4 too?
Date: 2009-10-27 17:45:39
Message-ID: 603c8f070910271045w24457b35w97706f0d039aa3cf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 27, 2009 at 1:14 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> If it doesn't have any effect anyway, what's the virtue of back-patching it?
>
> Because 8.4 just fails in cases where we can easily allow it to work
> according to the new definition.  Right now, if you want to use FOR
> UPDATE in a query that has WITHs, you have to carefully write
> FOR UPDATE OF x,y,z,... for all the non-WITH relations.

Oh, I see. Well, that seems like it makes sense to me, then.

...Robert

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-10-27 17:51:47 Re: Endgame for all those SELECT FOR UPDATE changes: fix plan node order
Previous Message Tom Lane 2009-10-27 17:30:38 Re: Delete cascade with three levels bug ?