Re: [Q] Update from a table

From: Ladislav Lenart <lenartlad(at)volny(dot)cz>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: [Q] Update from a table
Date: 2013-12-05 14:30:52
Message-ID: 52A08E1C.1010702@volny.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5.12.2013 15:14, Tom Lane wrote:
> Ladislav Lenart <lenartlad(at)volny(dot)cz> writes:
>> What happens if I issue UPDATE SET FROM... but with incomplete/buggy WHERE
>> condition and thus SEVERAL rows from the from_list match ONE row to update?
>
> Any given row will be updated at most once. However, the from_list row
> it gets updated against will be unpredictable, depending on the
> implementation of the join.
>
> regards, tom lane

Makes perfect sense.

Thank you,

Ladislav Lenart

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2013-12-05 15:44:41 Re: [GENERAL] Fwd: Help!Why CPU Usage and LoadAverage Jump up Suddenly
Previous Message Tom Lane 2013-12-05 14:14:24 Re: [Q] Update from a table