Re: [PATCH] Keeps tracking the uniqueness with UniqueKey

From: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
To: "Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Floris Van Nee <florisvannee(at)optiver(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, "rushabh(dot)lathia(at)gmail(dot)com" <rushabh(dot)lathia(at)gmail(dot)com>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
Subject: Re: [PATCH] Keeps tracking the uniqueness with UniqueKey
Date: 2020-10-12 02:33:17
Message-ID: CAKU4AWr2RY2wVTeKabH9a0X2WF2wXWH9a3n-HMTx61c=-2Rn5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 8, 2020 at 12:12 PM Hou, Zhijie <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com>
wrote:

> Hi
>
> I have a look over this patch and find some typos in 0002.
>
> 1.Some typos about unique:
> There are some spelling mistakes about "unique" in code comments and
> README.
> Such as: "+However we define the UnqiueKey as below."
>
> 2.function name about initililze_uniquecontext_for_joinrel:
> May be it should be initialize_ uniquecontext_for_joinrel.
>
> 3.some typos in comment:
> + * baserelation's basicrestrictinfo. so it must be
> in ON clauses.
>
> I think it shoule be " basicrestrictinfo " => "baserestrictinfo".
>
>
> Besides, I think list_copy can be used to simplify the following code.
> (But It seems the type of expr is still in discussion, so this may has no
> impact )
> + List *exprs = NIL;
> ...
> + foreach(lc, unionrel->reltarget->exprs)
> + {
> + exprs = lappend(exprs, lfirst(lc));
> + }
>
> Best regards,
>
>
>
Thank you zhijie, I will fix them in next version.

--
Best Regards
Andy Fan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Nancarrow 2020-10-12 02:41:09 Re: Parallel INSERT (INTO ... SELECT ...)
Previous Message Andy Fan 2020-10-12 02:32:39 Re: [PATCH] Keeps tracking the uniqueness with UniqueKey