| From: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
|---|---|
| To: | Japin Li <japinli(at)hotmail(dot)com> |
| Cc: | Richard Guo <guofenglinux(at)gmail(dot)com>, John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: fixing typo in comment for restriction_is_or_clause |
| Date: | 2022-10-25 03:07:45 |
| Message-ID: | CALNJ-vSTpjFVwrf+fYTUSQjnjv1KoSOxziWsznN6sww9r0UJiw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Oct 24, 2022 at 7:58 PM Japin Li <japinli(at)hotmail(dot)com> wrote:
>
> On Tue, 25 Oct 2022 at 10:48, Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> > On Tue, Oct 25, 2022 at 10:05 AM John Naylor <
> john(dot)naylor(at)enterprisedb(dot)com>
> > wrote:
> >
> >>
> >> On Tue, Oct 25, 2022 at 12:19 AM Zhihong Yu <zyu(at)yugabyte(dot)com> wrote:
> >> >
> >> > Hi,
> >> > When I was looking at src/backend/optimizer/util/restrictinfo.c, I
> found
> >> a typo in one of the comments.
> >>
> >> Using "t" as an abbreviation for "true" was probably intentional, so
> not a
> >> typo. There is no doubt what the behavior is.
> >>
> >> > I also took the chance to simplify the code a little bit.
> >>
> >> It's perfectly clear and simple now, even if it doesn't win at "code
> golf".
> >>
> >
> > Agree with your point. Do you think we can further make the one-line
> > function a macro or an inline function in the .h file? I think this
> > function is called quite frequently during planning, so maybe doing that
> > would bring a little bit of efficiency.
> >
>
> +1, same goes for restriction_is_securely_promotable.
>
> Hi,
Thanks for the comments.
Please take a look at patch v2.
| Attachment | Content-Type | Size |
|---|---|---|
| v2-is-or.patch | application/octet-stream | 1.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2022-10-25 03:08:10 | Re: Perform streaming logical transactions by background workers and parallel apply |
| Previous Message | Japin Li | 2022-10-25 02:58:09 | Re: fixing typo in comment for restriction_is_or_clause |