Re: Typo fixes in src/backend/rewrite/rewriteHandler.c

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Etsuro Fujita <fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Typo fixes in src/backend/rewrite/rewriteHandler.c
Date: 2014-10-03 15:48:07
Message-ID: CA+TgmoZbe=7Xppi8M_YFdFa844UuXefRTre38rwoJiTrE=_JXA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 2, 2014 at 2:55 AM, Etsuro Fujita
<fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp> wrote:
> Here is the comments in process_matched_tle() in rewriteHandler.c.
>
> 883 * such nodes; consider
> 884 * UPDATE tab SET col.fld1.subfld1 = x, col.fld2.subfld2 = y
> 885 * The two expressions produced by the parser will look like
> 886 * FieldStore(col, fld1, FieldStore(placeholder, subfld1, x))
> 887 * FieldStore(col, fld2, FieldStore(placeholder, subfld2, x))
>
> I think the second one is not correct and should be
>
> FieldStore(col, fld2, FieldStore(placeholder, subfld2, y))
>
> Just like this,
>
> 891 * FieldStore(FieldStore(col, fld1,
> 892 * FieldStore(placeholder, subfld1, x)),
> 893 * fld2, FieldStore(placeholder, subfld2, x))
>
> should be
>
> FieldStore(FieldStore(col, fld1,
> FieldStore(placeholder, subfld1, x)),
> fld2, FieldStore(placeholder, subfld2, y))
>
> Patch attached.

Looks right to me. Committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-10-03 15:51:46 Re: Dynamic LWLock tracing via pg_stat_lwlock (proof of concept)
Previous Message Bruce Momjian 2014-10-03 15:33:18 Re: Dynamic LWLock tracing via pg_stat_lwlock (proof of concept)